Sha256: fd4459695eb6cfea570b337c3983814d67baeb1ce29f99969b90eefd5eaa0ed9

Contents?: true

Size: 494 Bytes

Versions: 9

Compression:

Stored size: 494 Bytes

Contents

module Tr3llo
  module Presenter
    module Board
      class ListPresenter
        def initialize(interface)
          @interface = interface
        end

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

        private

        attr_reader :interface

        def present_board(board)
          interface.puts "[#{board[:id].labelize}] - #{board[:name]}"
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
3llo-0.3.1 lib/3llo/presenter/board/list.rb
3llo-0.3.0 lib/3llo/presenter/board/list.rb
3llo-0.2.0 lib/3llo/presenter/board/list.rb
3llo-0.1.12 lib/3llo/presenter/board/list.rb
3llo-0.1.11 lib/3llo/presenter/board/list.rb
3llo-0.1.10 lib/3llo/presenter/board/list.rb
3llo-0.1.9 lib/3llo/presenter/board/list.rb
3llo-0.1.9.beta lib/3llo/presenter/board/list.rb
3llo-0.1.8 lib/3llo/presenter/board/list.rb