Class: C4::View::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/c4/view/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#gameObject (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



12
13
14
# File 'lib/c4/view/cli.rb', line 12

def print
  puts text
end