Class: Extract::Row

Inherits:
Object show all
Includes:
Enumerable, FromHash
Defined in:
lib/extract/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cellsObject

Returns the value of attribute cells.



5
6
7
# File 'lib/extract/table.rb', line 5

def cells
  @cells
end

#tableObject

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

Returns:

  • (Boolean)


25
26
27
# File 'lib/extract/table.rb', line 25

def present?
  value_hash.values.any? { |x| x.present? }
end