Method: HighLine#list

Defined in:
lib/highline.rb

#list(items, mode = :rows, option = nil) ⇒ String

Renders a list of itens using a ListRenderer

Parameters:

  • items (Array)
  • mode (Symbol) (defaults to: :rows)
  • option (defaults to: nil)

Returns:

See Also:



365
366
367
# File 'lib/highline.rb', line 365

def list(items, mode = :rows, option = nil)
  ListRenderer.new(items, mode, option, self).render
end