Class: NattyUI::Table::ColumnsCollection
- Inherits:
-
Object
- Object
- NattyUI::Table::ColumnsCollection
- Includes:
- Enumerable
- Defined in:
- lib/natty-ui/table.rb
Instance Method Summary collapse
-
#[](index) ⇒ Column?
Column at given index.
-
#count ⇒ Integer
Count of columns.
- #each(&block) ⇒ Object
- #empty? ⇒ Boolean
- #to_s ⇒ Object (also: #inspect)
Instance Method Details
#[](index) ⇒ Column?
Returns column at given index.
67 |
# File 'lib/natty-ui/table.rb', line 67 def [](index) = columns[index] |
#count ⇒ Integer
Returns count of columns.
62 |
# File 'lib/natty-ui/table.rb', line 62 def count = columns.size |
#each(&block) ⇒ Object
69 |
# File 'lib/natty-ui/table.rb', line 69 def each(&block) = columns.each(&block) |
#empty? ⇒ Boolean
64 |
# File 'lib/natty-ui/table.rb', line 64 def empty? = columns.empty? |
#to_s ⇒ Object Also known as: inspect
71 |
# File 'lib/natty-ui/table.rb', line 71 def to_s = "#{super.chop} @columns:#{columns.inspect}>" |