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
#cleanup, #encode, #initialize, #scan_xml, #to_hash
Methods inherited from LocalizedString
#cleanup, #empty?, #encode, #escp, #initialize, #to_hash, #to_s
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::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 |