Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created November 21, 2009 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save defunkt/240307 to your computer and use it in GitHub Desktop.
Save defunkt/240307 to your computer and use it in GitHub Desktop.
irb and STDIN
$ 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