Created
July 5, 2013 07:36
-
-
Save unfo/5932706 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
1.8.7 :001 > class Foo | |
1.8.7 :002?> attr_accessor :bar | |
1.8.7 :003?> end | |
=> nil | |
1.8.7 :004 > f = Foo.new | |
=> #<Foo:0x10d893ec0> | |
1.8.7 :005 > f.bar | |
=> nil | |
1.8.7 :006 > f.bar = 'kek' | |
=> "kek" | |
1.8.7 :007 > f.bar | |
=> "kek" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment