Skip to content

'cd' command broken with Pry::WrappedModule instances? #530

Closed
banister opened this Issue Apr 14, 2012 · 0 comments

2 participants

@banister
pry member
[17] (pry) main: 0> o = Pry::WrappedModule(Pry)                                                                                          
=> #<Pry::WrappedModule:0x007f8fa0f3a840
 @doc=nil,
 @host_file_lines=nil,
 @source=nil,
 @source_location=nil,
 @wrapped=Pry>
[18] (pry) main: 0> cd o                                                                                                                 
Bad object path: o. Failed trying to resolve: o
#<NoMethodError: undefined method `args' for Pry:Class>

EDIT: This bug can be further isolated:

[19] (pry) #<#<Class:0x007fab9c0e0930>>: 0> Pry.binding_for(o)                                                                           
NoMethodError: undefined method `args' for Pry:Class
from /Users/john/ruby/projects/pry/lib/pry/wrapped_module.rb:85:in `method_missing'
[20] (pry) #<#<Class:0x007fab9c0e0930>>: 0> o.__binding__                                                                                
NoMethodError: undefined method `args' for Pry:Class
from /Users/john/ruby/projects/pry/lib/pry/wrapped_module.rb:85:in `method_missing'
[21] (pry) #<#<Class:0x007fab9c0e0930>>: 0> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.