1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

removed obsolete try_to_load_pry_doc helper

This commit is contained in:
John Mair 2011-06-03 21:51:41 +12:00
parent 81d44b0674
commit 5c9dbe82b3

View file

@ -5,15 +5,6 @@ class Pry
module_function
def try_to_load_pry_doc
# YARD crashes on rbx, so do not require it
if !Object.const_defined?(:RUBY_ENGINE) || RUBY_ENGINE !~ /rbx/
require "pry-doc"
end
rescue LoadError
end
def meth_name_from_binding(b)
meth_name = b.eval('__method__')
if [:__script__, nil, :__binding__, :__binding_impl__].include?(meth_name)