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:
parent
81d44b0674
commit
5c9dbe82b3
1 changed files with 0 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue