summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/locale.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 142b9a5951..77cc06ed30 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -147,7 +147,7 @@ module IRB
full_path = File.join(libpath, lc_path)
return full_path if File.readable?(full_path)
end
- redo if Gem.try_activate(lc_path)
+ redo if defined?(Gem) and Gem.try_activate(lc_path)
end
nil
end