Class: RelatonBib::SourceLocalityStack
- Inherits:
-
LocalityStack
- Object
- LocalityStack
- RelatonBib::SourceLocalityStack
- Defined in:
- lib/relaton_bib/bib_item_locality.rb
Constant Summary
Constants included from RelatonBib
Instance Attribute Summary
Attributes inherited from LocalityStack
Instance Method Summary collapse
Methods inherited from LocalityStack
#initialize, #to_asciibib, #to_bibtex
Methods included from RelatonBib
array, format_date, grammar_hash, parse_date, parse_yaml
Methods included from Config
Constructor Details
This class inherits a constructor from RelatonBib::LocalityStack
Instance Method Details
#to_hash ⇒ Object
171 172 173 |
# File 'lib/relaton_bib/bib_item_locality.rb', line 171 def to_hash { "source_locality_stack" => single_element_array(locality) } end |
#to_xml(builder) ⇒ Object
164 165 166 167 168 |
# File 'lib/relaton_bib/bib_item_locality.rb', line 164 def to_xml(builder) builder.sourceLocalityStack do |b| locality.each { |l| l.to_xml(b) } end end |