Class: Tr3llo::Presenter::Board::ListPresenter
- Inherits:
-
Object
- Object
- Tr3llo::Presenter::Board::ListPresenter
- Defined in:
- lib/3llo/presenter/board/list.rb
Instance Method Summary collapse
-
#initialize(interface) ⇒ ListPresenter
constructor
A new instance of ListPresenter.
- #print!(boards) ⇒ Object
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 |