Created
August 28, 2014 17:40
-
-
Save akcrono/232ea5dffab6a8afad7d 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 Car | |
def initialize(color, owner, cylinders) | |
@color = color | |
@owner = owner | |
@cylinders = cylinders | |
end | |
def color | |
@color | |
end | |
def ownder | |
@owner | |
end | |
def cylinders | |
@cylinders | |
end | |
end | |
dans_car = Car.new('black', 'Dan', 4) | |
dans_car.color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment