Class: RD::Reference::TemporaryLabel

Inherits:
Label
  • Object
show all
Defined in:
lib/rd/inline-element.rb

Overview

for initialization. Parameter Object(?)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Label

#result_of_apply_method_of

Constructor Details

#initialize(element_label = [], filename = nil) ⇒ TemporaryLabel

Returns a new instance of TemporaryLabel.



210
211
212
213
# File 'lib/rd/inline-element.rb', line 210

def initialize(element_label = [], filename = nil)
	@element_label = element_label
	@filename = filename
end

Instance Attribute Details

#element_labelObject

Returns the value of attribute element_label.



207
208
209
# File 'lib/rd/inline-element.rb', line 207

def element_label
  @element_label
end

#filenameObject

Returns the value of attribute filename.



208
209
210
# File 'lib/rd/inline-element.rb', line 208

def filename
  @filename
end

Instance Method Details

#renew_labelObject



219
220
221
# File 'lib/rd/inline-element.rb', line 219

def renew_label
	RDLabel.new(extract_label(self.element_label), self.filename)
end

#to_reference_contentObject



215
216
217
# File 'lib/rd/inline-element.rb', line 215

def to_reference_content
	self.element_label
end