This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepender@deepender-Vostro-1450:~/niveshi$ dbundle --verbose | |
Fetching gem metadata from https://rubygems.org/.......... | |
Fetching additional metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using rake 10.1.0 | |
Using i18n 0.6.5 | |
Using multi_json 1.8.1 | |
Using activesupport 3.2.12 | |
Using builder 3.0.4 | |
Using activemodel 3.2.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[3] pry(main)> reload-code self | |
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: already initialized constant Pry::BINDING_METHOD_IMPL | |
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: previous definition of BINDING_METHOD_IMPL was here | |
self was reloaded! | |
[4] pry(main)> reload-code | |
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: already initialized constant Pry::BINDING_METHOD_IMPL | |
/home/deepender/pry/lib/pry/core_extensions.rb:7: warning: previous definition of BINDING_METHOD_IMPL was here | |
self was reloaded! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'should take care of corner cases like mongo[] e.g Foo::Bar.new[]- issue 998' do | |
klass = Class.new { def []; :hello; end } | |
meth = Pry::Method.from_str("klass.new[]", Pry.binding_for(binding)) | |
meth.name.should == "[]" | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2] pry(main)> f = Foo::Bar.new | |
=> #<Foo::Bar:0x000000032174a8> | |
[3] pry(main)> $ f.[] | |
From: (pry) @ line 3: | |
Owner: Foo::Bar | |
Visibility: public | |
Number of lines: 3 | |
def [](key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test: | |
[2] pry(main)> f = Foo::Bar.new | |
=> #<Foo::Bar:0x00000002f105e8> | |
[3] pry(main)> $ f.[] | |
From: (pry) @ line 3: | |
Owner: Foo::Bar | |
Visibility: public | |
Number of lines: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pry(main)> f = Foo::Bar.new | |
=> #<Foo::Bar:0x000000030204d8> | |
[3] pry(main)> $ f.[] | |
From: (pry) @ line 3: | |
Owner: Foo::Bar | |
Visibility: public | |
Number of lines: 3 | |
def [](key) |
NewerOlder