Class: Extract::Row
- Includes:
- Enumerable, FromHash
- Defined in:
- lib/extract/table.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells.
5 6 7 |
# File 'lib/extract/table.rb', line 5 def cells @cells end |
#table ⇒ Object
Returns the value of attribute table.
5 6 7 |
# File 'lib/extract/table.rb', line 5 def table @table end |
Instance Method Details
#[](k) ⇒ Object
17 18 19 |
# File 'lib/extract/table.rb', line 17 def [](k) value_hash[k] end |
#each(&b) ⇒ Object
21 22 23 |
# File 'lib/extract/table.rb', line 21 def each(&b) value_hash.each(&b) end |
#present? ⇒ Boolean
25 26 27 |
# File 'lib/extract/table.rb', line 25 def present? value_hash.values.any? { |x| x.present? } end |