Created
September 17, 2015 23:55
-
-
Save chrisseaton/39ac7603ec69bb767bee to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
def initialize(x, y) | |
@x = x | |
@y = y | |
end | |
def foo | |
@x + @y | |
end | |
end | |
f = Foo.new(14, 2) | |
loop do | |
f.foo | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment