Class: C4::View::Cli
- Inherits:
-
Object
- Object
- C4::View::Cli
- Defined in:
- lib/c4/view/cli.rb
Instance Attribute Summary collapse
-
#game ⇒ Object
readonly
Returns the value of attribute game.
Instance Method Summary collapse
-
#initialize(game) ⇒ Cli
constructor
A new instance of Cli.
- #print ⇒ Object
Constructor Details
#initialize(game) ⇒ Cli
Returns a new instance of Cli.
8 9 10 |
# File 'lib/c4/view/cli.rb', line 8 def initialize(game) @game = game end |
Instance Attribute Details
#game ⇒ Object (readonly)
Returns the value of attribute game.
6 7 8 |
# File 'lib/c4/view/cli.rb', line 6 def game @game end |
Instance Method Details
#print ⇒ Object
12 13 14 |
# File 'lib/c4/view/cli.rb', line 12 def print puts text end |