Class: Tr3llo::Presenter::List::ListPresenter

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

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ ListPresenter

Returns a new instance of ListPresenter.



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

def initialize(interface)
  @interface = interface
end

Instance Method Details

#print!(lists) ⇒ Object



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

def print!(lists)
  interface.print_frame do
    lists.each { |list| present_list(list) }
  end
end