Class: IsoBibItem::DocumentStatus
- Inherits:
-
Object
- Object
- IsoBibItem::DocumentStatus
- Defined in:
- lib/iso_bib_item/document_status.rb
Overview
Dovument status.
Direct Known Subclasses
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(status) ⇒ DocumentStatus
constructor
A new instance of DocumentStatus.
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(status) ⇒ DocumentStatus
Returns a new instance of DocumentStatus.
12 13 14 |
# File 'lib/iso_bib_item/document_status.rb', line 12 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ IsoBibItem::LocalizedString (readonly)
9 10 11 |
# File 'lib/iso_bib_item/document_status.rb', line 9 def status @status end |
Instance Method Details
#to_xml(builder) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/iso_bib_item/document_status.rb', line 17 def to_xml(builder) builder.status do # FormattedString.instance_method(:to_xml).bind(status).call builder status.to_xml builder end end |