Created
April 19, 2018 02:57
-
-
Save cefaijustin/766e915865129ba0125be0b8599fab29 to your computer and use it in GitHub Desktop.
This file contains 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 Bike | |
attr_accessor :brand, :color | |
def initialize(brand, color) | |
@brand = brand | |
@color = color | |
end | |
end | |
bike = Bike.new(:schwinn, :red) | |
puts bike.color | |
puts bike.brand | |
# WHERE'S MY BIKE??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment