Class: Tr3llo::Command::Board::SelectCommand
- Inherits:
-
Object
- Object
- Tr3llo::Command::Board::SelectCommand
- Defined in:
- lib/3llo/commands/board/select.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(board_id) ⇒ SelectCommand
constructor
A new instance of SelectCommand.
Constructor Details
#initialize(board_id) ⇒ SelectCommand
Returns a new instance of SelectCommand.
5 6 7 |
# File 'lib/3llo/commands/board/select.rb', line 5 def initialize(board_id) @board_id = board_id end |
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/3llo/commands/board/select.rb', line 9 def execute board = load_board $container.register(:board, board) interface.print_frame do interface.puts("Board #{board[:name].labelize} selected") end end |