lib/irbtools/more.rb in irbtools-more-2.1.0 vs lib/irbtools/more.rb in irbtools-more-2.2.0
- old
+ new
@@ -7,13 +7,17 @@
# Better auto-completion
Irbtools.add_library :bond, thread: :more1 do
Bond.start :gems => %w[irbtools]
end
-# Object#l method for inspecting its lookup path
-# Irbtools.add_library 'looksee', thread: :more2 do
-# Looksee.rename :lp
-# end
+begin
+ # Object#l method for inspecting its lookup path
+ Irbtools.add_library 'looksee', thread: :more2 do
+ Looksee.rename :lp
+ end
+rescue LoadError
+ # do not load if not supported
+end
# new guessmethod
Irbtools.add_library 'did_you_mean', thread: :more3
# load now