Class: Tr3llo::Presenter::List::CardsPresenter

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

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ CardsPresenter

Returns a new instance of CardsPresenter.



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

def initialize(interface)
  @interface = interface
end

Instance Method Details

#print!(cards) ⇒ Object



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

def print!(cards)
  interface.print_frame do
    cards.each { |card| present_card(card) }
  end
end