Skip to content

Instantly share code, notes, and snippets.

@adeng21
Created March 3, 2014 16:48
Show Gist options
  • Select an option

  • Save adeng21/9329126 to your computer and use it in GitHub Desktop.

Select an option

Save adeng21/9329126 to your computer and use it in GitHub Desktop.
Class Constructors
class Television
def initialize(brand, model)
@brand = brand
@model = model
end
end
class TelevisionChannel
def initialize(name, channel_number)
@name = name
@channel_number = channel_number
end
end
class TelevisionShow
def initialize(name, time)
@name = name
@time = time
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment