Created
October 2, 2014 01:40
-
-
Save lsegal/0054b6f1b990bc3d3141 to your computer and use it in GitHub Desktop.
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
$ rvm use 1.8.7 | |
$ irb | |
>> class Foo; def foo; "abc" end; def run; foo=foo; p foo; end end | |
=> nil | |
>> Foo.new.foo | |
=> "abc" | |
$ rvm use 2.2.0 | |
$ irb | |
>> class Foo; def foo; "abc" end; def run; foo=foo; p foo; end end | |
=> :run | |
>> Foo.new.foo | |
=> "abc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment