Class: RelatonBib::FormattedRef
- Inherits:
-
FormattedString
- Object
- LocalizedString
- FormattedString
- RelatonBib::FormattedRef
- Defined in:
- lib/relaton_bib/formatted_ref.rb
Constant Summary
Constants inherited from FormattedString
RelatonBib::FormattedString::FORMATS
Constants included from RelatonBib
Instance Attribute Summary
Attributes inherited from FormattedString
Attributes inherited from LocalizedString
Instance Method Summary collapse
Methods inherited from FormattedString
Methods inherited from LocalizedString
#empty?, #initialize, #to_hash, #to_s
Methods included from RelatonBib
Constructor Details
This class inherits a constructor from RelatonBib::FormattedString
Instance Method Details
#to_asciibib(prefix = "") ⇒ String
12 13 14 15 |
# File 'lib/relaton_bib/formatted_ref.rb', line 12 def to_asciibib(prefix = "") pref = prefix.empty? ? "formattedref" : prefix + ".formattedref" super pref end |
#to_xml(builder) ⇒ Object
6 7 8 |
# File 'lib/relaton_bib/formatted_ref.rb', line 6 def to_xml(builder) builder.formattedref { super } end |