Method: HighLine::List#initialize
- Defined in:
- lib/highline/list.rb
#initialize(items, options = {}) ⇒ List
Returns a new instance of List.
61 62 63 64 65 66 67 |
# File 'lib/highline/list.rb', line 61 def initialize(items, = {}) @items = items.to_a.dup.freeze @transpose_mode = .fetch(:transpose) { false } @col_down_mode = .fetch(:col_down) { false } @cols = .fetch(:cols) { 1 } build end |