Class: Tc211::Termbase::SheetSection

Inherits:
Object
  • Object
show all
Defined in:
lib/tc211/termbase/sheet_section.rb

Direct Known Subclasses

MetadataSection, TermsSection

Defined Under Namespace

Classes: RowHeaderMatchError, UnknownHeaderError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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, _options = {})
  # 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_contentObject

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