Class: HighLine::Table
- 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
- #color ⇒ Object
-
#initialize(items = nil, options = {}, &mapper) ⇒ Table
constructor
A new instance of Table.
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,={},&mapper) @items, @options, @mapper = items, , mapper end |
Instance Method Details
#color ⇒ Object
309 310 311 |
# File 'lib/rhc/highline_extensions.rb', line 309 def color opts[:color] end |