Class: Tr3llo::Presenter::Board::ListPresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/3llo/presenter/board/list.rb

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ ListPresenter

Returns a new instance of ListPresenter.



5
6
7
# File 'lib/3llo/presenter/board/list.rb', line 5

def initialize(interface)
  @interface = interface
end

Instance Method Details

#print!(boards) ⇒ Object



9
10
11
12
13
# File 'lib/3llo/presenter/board/list.rb', line 9

def print!(boards)
  interface.print_frame do
    boards.each { |board| present_board(board) }
  end
end