Class: Tc211::Termbase::SheetSection
- Inherits:
-
Object
- Object
- Tc211::Termbase::SheetSection
- Defined in:
- lib/tc211/termbase/sheet_section.rb
Direct Known Subclasses
Defined Under Namespace
Classes: RowHeaderMatchError, UnknownHeaderError
Instance Attribute Summary collapse
-
#sheet_content ⇒ Object
Returns the value of attribute sheet_content.
Class Method Summary collapse
- .identify_type(_row) ⇒ Object
-
.match_header(_row) ⇒ Object
Abstract method.
Instance Method Summary collapse
-
#initialize(rows, _options = {}) ⇒ SheetSection
constructor
A new instance of SheetSection.
Constructor Details
#initialize(rows, _options = {}) ⇒ SheetSection
Returns a new instance of SheetSection.
11 12 13 14 15 16 17 18 |
# File 'lib/tc211/termbase/sheet_section.rb', line 11 def initialize(rows, = {}) # rows is an array of rows! raise unless rows.is_a?(Array) @rows = rows # @has_header = options[:has_header].nil? ? true : options[:has_header] self end |
Instance Attribute Details
#sheet_content ⇒ Object
Returns the value of attribute sheet_content.
9 10 11 |
# File 'lib/tc211/termbase/sheet_section.rb', line 9 def sheet_content @sheet_content end |
Class Method Details
.identify_type(_row) ⇒ Object
25 |
# File 'lib/tc211/termbase/sheet_section.rb', line 25 def self.identify_type(_row); end |
.match_header(_row) ⇒ Object
Abstract method
21 22 23 |
# File 'lib/tc211/termbase/sheet_section.rb', line 21 def self.match_header(_row) false end |