Created
December 9, 2018 05:38
-
-
Save eam/bc1821aac128d8cb9d57538a332183c8 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_accessor :bar | |
def initialize | |
@bar = 99 | |
end | |
def baz | |
puts bar | |
bar += 1 end | |
end | |
a = Foo.new | |
puts a.bar | |
puts a.baz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment