Class: Tc211::Termbase::InformationSheet

Inherits:
TerminologySheet show all
Defined in:
lib/tc211/termbase/information_sheet.rb

Instance Attribute Summary

Attributes inherited from TerminologySheet

#language_code, #sheet

Instance Method Summary collapse

Methods inherited from TerminologySheet

#get_section, #initialize, #language, #sections, #sections_raw, #set_language_code, #terms_section

Constructor Details

This class inherits a constructor from Tc211::Termbase::TerminologySheet

Instance Method Details

#metadata_sectionObject



5
6
7
8
# File 'lib/tc211/termbase/information_sheet.rb', line 5

def 
  sheet_array = @sheet.simple_rows.to_a
  MetadataSection.new(sheet_array)
end

#to_hashObject



10
11
12
# File 'lib/tc211/termbase/information_sheet.rb', line 10

def to_hash
  { "glossary" => .to_hash }
end

#to_yamlObject



14
15
16
# File 'lib/tc211/termbase/information_sheet.rb', line 14

def to_yaml
  to_hash.to_yaml
end