Class: CLI::Selection

Inherits:
Object
  • Object
show all
Defined in:
lib/ttt/interfaces/cli/lib/cli/selection.rb

Direct Known Subclasses

BoardSelection, PlayerSelection

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boardsObject

Returns the value of attribute boards.



3
4
5
# File 'lib/ttt/interfaces/cli/lib/cli/selection.rb', line 3

def boards
  @boards
end

#playersObject

Returns the value of attribute players.



3
4
5
# File 'lib/ttt/interfaces/cli/lib/cli/selection.rb', line 3

def players
  @players
end

#presenterObject

Returns the value of attribute presenter.



3
4
5
# File 'lib/ttt/interfaces/cli/lib/cli/selection.rb', line 3

def presenter
  @presenter
end

Instance Method Details

#inputObject



4
5
6
# File 'lib/ttt/interfaces/cli/lib/cli/selection.rb', line 4

def input
  presenter.input
end