Skip to content

Instantly share code, notes, and snippets.

@chrisseaton
Created September 17, 2015 23:55
Show Gist options
  • Save chrisseaton/39ac7603ec69bb767bee to your computer and use it in GitHub Desktop.
Save chrisseaton/39ac7603ec69bb767bee to your computer and use it in GitHub Desktop.
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