class RD::Reference::TemporaryLabel
for initialization. Parameter Object(?)
Attributes
element_label[RW]
filename[RW]
Public Class Methods
new(element_label = [], filename = nil)
click to toggle source
# File lib/rd/inline-element.rb, line 210 def initialize(element_label = [], filename = nil) @element_label = element_label @filename = filename end
Public Instance Methods
renew_label()
click to toggle source
# File lib/rd/inline-element.rb, line 219 def renew_label RDLabel.new(extract_label(self.element_label), self.filename) end
to_reference_content()
click to toggle source
# File lib/rd/inline-element.rb, line 215 def to_reference_content self.element_label end
Private Instance Methods
extract_label(elements)
click to toggle source
# File lib/rd/inline-element.rb, line 223 def extract_label(elements) ret = "" elements.each do |i| ret << i.to_label end ret.strip end