Created
September 27, 2015 01:04
-
-
Save mtwilliams/929fd01b3f7709766c35 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
class Foo | |
attr_reader :meaning_of_life, | |
:how_long_do_i_have, | |
def initialize(three_score_and_ten=70) | |
@meaning_of_life = 42 | |
@how_long_do_i_have = three_score_and_ten | |
end | |
end | |
puts Foo.new.how_long_do_i_have | |
# => nil |
Author
mtwilliams
commented
Sep 27, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment