Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created September 7, 2012 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andoriyu/3668185 to your computer and use it in GitHub Desktop.
Save andoriyu/3668185 to your computer and use it in GitHub Desktop.
Point = Struct.new(:x, :y) do
def translate(x,y)
self.x += x
self.y += y
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment