Class: Tr3llo::Presenter::Card::ShowPresenter

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

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ ShowPresenter

Returns a new instance of ShowPresenter.



5
6
7
# File 'lib/3llo/presenter/card/show.rb', line 5

def initialize(interface)
  @interface = interface
end

Instance Method Details

#print!(card) ⇒ Object



9
10
11
# File 'lib/3llo/presenter/card/show.rb', line 9

def print!(card)
  interface.print_frame { present_card(card) }
end