Class: RelatonBib::Locality
- Inherits:
-
BibItemLocality
- Object
- BibItemLocality
- RelatonBib::Locality
- Defined in:
- lib/relaton_bib/bib_item_locality.rb
Instance Attribute Summary
Attributes inherited from BibItemLocality
#reference_from, #reference_to, #type
Instance Method Summary collapse
-
#to_asciibib(prefix = "", count = 1) ⇒ String
Render locality as AsciiBib.
-
#to_hash ⇒ Hash
Render locality as hash.
- #to_xml(builder) ⇒ Object
Methods inherited from BibItemLocality
Constructor Details
This class inherits a constructor from RelatonBib::BibItemLocality
Instance Method Details
#to_asciibib(prefix = "", count = 1) ⇒ String
Render locality as AsciiBib.
95 96 97 98 |
# File 'lib/relaton_bib/bib_item_locality.rb', line 95 def to_asciibib(prefix = "", count = 1) pref = prefix.empty? ? "locality" : "#{prefix}.locality" super(pref, count) end |
#to_hash ⇒ Hash
Render locality as hash.
83 84 85 |
# File 'lib/relaton_bib/bib_item_locality.rb', line 83 def to_hash { "locality" => super } end |
#to_xml(builder) ⇒ Object
74 75 76 |
# File 'lib/relaton_bib/bib_item_locality.rb', line 74 def to_xml(builder) builder.locality { |b| super(b) } end |