Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/extract.rb,
lib/extract/parser.rb
Instance Attribute Summary collapse
-
#root_sheet ⇒ Object
Returns the value of attribute root_sheet.
Instance Method Summary collapse
Instance Attribute Details
#root_sheet ⇒ Object
Returns the value of attribute root_sheet.
20 21 22 |
# File 'lib/extract/parser.rb', line 20 def root_sheet @root_sheet end |
Instance Method Details
#blank? ⇒ Boolean
11 12 13 |
# File 'lib/extract.rb', line 11 def blank? to_s.strip == "" end |
#find_sheet ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/extract/parser.rb', line 22 def find_sheet if root_sheet root_sheet elsif parent parent.find_sheet else raise "can't find sheet" end end |
#present? ⇒ Boolean
14 15 16 |
# File 'lib/extract.rb', line 14 def present? !blank? end |