Created
November 21, 2009 22:12
-
-
Save defunkt/240307 to your computer and use it in GitHub Desktop.
irb and STDIN
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
$ cat test.rb | |
class Person | |
end | |
Person.new | |
$ cat test.rb | irb | |
>> class Person | |
>> end | |
=> nil | |
>> | |
?> Person.new | |
=> #<Person:0x100323650> | |
>> $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment