Class: Tc211::Termbase::InformationSheet
Instance Attribute Summary
#language_code, #sheet
Instance Method Summary
collapse
#get_section, #initialize, #language, #sections, #sections_raw, #set_language_code, #terms_section
Instance Method Details
5
6
7
8
|
# File 'lib/tc211/termbase/information_sheet.rb', line 5
def metadata_section
sheet_array = @sheet.simple_rows.to_a
MetadataSection.new(sheet_array)
end
|
#to_hash ⇒ Object
10
11
12
|
# File 'lib/tc211/termbase/information_sheet.rb', line 10
def to_hash
{ "glossary" => metadata_section.to_hash }
end
|
#to_yaml ⇒ Object
14
15
16
|
# File 'lib/tc211/termbase/information_sheet.rb', line 14
def to_yaml
to_hash.to_yaml
end
|