Class: RD::Reference::RDLabel

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

Overview

URL

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Label

#extract_label

Constructor Details

#initialize(element_label, filename = nil) ⇒ RDLabel

Returns a new instance of RDLabel.



185
186
187
188
# File 'lib/rd/inline-element.rb', line 185

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

Instance Attribute Details

#element_labelObject Also known as: to_label

Returns the value of attribute element_label.



182
183
184
# File 'lib/rd/inline-element.rb', line 182

def element_label
  @element_label
end

#filenameObject

Returns the value of attribute filename.



183
184
185
# File 'lib/rd/inline-element.rb', line 183

def filename
  @filename
end

Instance Method Details

#renew_labelObject



198
199
200
# File 'lib/rd/inline-element.rb', line 198

def renew_label
	self
end

#result_of_apply_method_of(visitor, reference, children) ⇒ Object



190
191
192
# File 'lib/rd/inline-element.rb', line 190

def result_of_apply_method_of(visitor, reference, children)
	visitor.apply_to_Reference_with_RDLabel(reference, children)
end

#to_reference_contentObject



194
195
196
# File 'lib/rd/inline-element.rb', line 194

def to_reference_content
	[]
end