Class: C4::App
Instance Attribute Summary collapse
-
#game ⇒ Object
readonly
Returns the value of attribute game.
-
#viewer ⇒ Object
readonly
Returns the value of attribute viewer.
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #run ⇒ Object
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
15 16 17 18 |
# File 'lib/c4.rb', line 15 def initialize @game = C4::Model::Game.new @viewer = C4::View::Cli.new(game) end |
Instance Attribute Details
#game ⇒ Object (readonly)
Returns the value of attribute game.
13 14 15 |
# File 'lib/c4.rb', line 13 def game @game end |
#viewer ⇒ Object (readonly)
Returns the value of attribute viewer.
13 14 15 |
# File 'lib/c4.rb', line 13 def viewer @viewer end |
Instance Method Details
#run ⇒ Object
20 21 22 23 |
# File 'lib/c4.rb', line 20 def run start finish end |