Class: RD::Reference::TemporaryLabel
- Defined in:
- lib/rd2odt/rdtool/rd/inline-element.rb
Overview
for initialization. Parameter Object(?)
Instance Attribute Summary collapse
-
#element_label ⇒ Object
Returns the value of attribute element_label.
-
#filename ⇒ Object
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(element_label = [], filename = nil) ⇒ TemporaryLabel
constructor
A new instance of TemporaryLabel.
- #renew_label ⇒ Object
- #to_reference_content ⇒ Object
Methods inherited from Label
Constructor Details
#initialize(element_label = [], filename = nil) ⇒ TemporaryLabel
Returns a new instance of TemporaryLabel.
210 211 212 213 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 210 def initialize(element_label = [], filename = nil) @element_label = element_label @filename = filename end |
Instance Attribute Details
#element_label ⇒ Object
Returns the value of attribute element_label.
207 208 209 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 207 def element_label @element_label end |
#filename ⇒ Object
Returns the value of attribute filename.
208 209 210 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 208 def filename @filename end |
Instance Method Details
#renew_label ⇒ Object
219 220 221 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 219 def renew_label RDLabel.new(extract_label(self.element_label), self.filename) end |
#to_reference_content ⇒ Object
215 216 217 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 215 def to_reference_content self.element_label end |