Sha256: a1b89f9fa7c2f667bb6c84c1bd96e49d626676ef8766cbfeeb73fa6feaf809f4
Contents?: true
Size: 549 Bytes
Versions: 8
Compression:
Stored size: 549 Bytes
Contents
module Tr3llo module Presenter module Card class MovePresenter def initialize(interface) @interface = interface end def prompt_for_list_id(lists) interface.input.select( 'Choose the list to be moved to', lists.map { |list| [list[:name], list[:id]] }.to_h ) end private attr_reader :interface def present_list(list) interface.puts "[#{list[:id].labelize}] - #{list[:name]}" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems