Skip to content

Instantly share code, notes, and snippets.

@allcentury
Created March 3, 2014 19:11
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 allcentury/9332380 to your computer and use it in GitHub Desktop.
Save allcentury/9332380 to your computer and use it in GitHub Desktop.
class Car
def initialize(color, owner, cylinders)
@color = color
@owner = owner
@cylinders = cylinders
end
def color
@color
end
def owner
@owner
end
def cylinders
@cylinders
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment