Created
October 13, 2012 20:26
-
-
Save codeschool-courses/3886024 to your computer and use it in GitHub Desktop.
RubyBits II 5-7 - game.rb
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 Game | |
attr_reader :name | |
def initialize(name) | |
@name = name | |
@year = nil | |
@system = nil | |
end | |
def year(value) | |
@year = value | |
end | |
def system(value) | |
@system = value | |
end | |
def print_details | |
puts "#{@name} - #{@year} (#{@system})" | |
end | |
def play | |
end | |
def capture_screenshot | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment