Class: HighLine::Table

Inherits:
Object show all
Includes:
RowBased
Defined in:
lib/rhc/highline_extensions.rb

Overview

Represent a columnar layout of items with wrapping and flexible layout.

Defined Under Namespace

Classes: Width

Instance Method Summary collapse

Constructor Details

#initialize(items = nil, options = {}, &mapper) ⇒ Table

Returns a new instance of Table.



305
306
307
# File 'lib/rhc/highline_extensions.rb', line 305

def initialize(items=nil,options={},&mapper)
  @items, @options, @mapper = items, options, mapper
end

Instance Method Details

#colorObject



309
310
311
# File 'lib/rhc/highline_extensions.rb', line 309

def color
  opts[:color]
end