Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created May 20, 2010 01:45
Show Gist options
  • Save edipofederle/407096 to your computer and use it in GitHub Desktop.
Save edipofederle/407096 to your computer and use it in GitHub Desktop.
class Matematica
def initialize(x,y)
@x = x
@y = y
end
def to_s
"(#@x,#@y)"
end
end
m = Matematica.new(3,4)
puts m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment