Class: RD::Reference::URL

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Label

#extract_label

Constructor Details

#initialize(url_str) ⇒ URL

Returns a new instance of URL.



160
161
162
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 160

def initialize(url_str)
	@url = url_str
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



158
159
160
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 158

def url
  @url
end

Instance Method Details

#renew_labelObject



176
177
178
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 176

def renew_label
	self
end

#result_of_apply_method_of(visitor, reference, children) ⇒ Object



168
169
170
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 168

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

#to_labelObject



164
165
166
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 164

def to_label
	""
end

#to_reference_contentObject



172
173
174
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 172

def to_reference_content
	[StringElement.new("<URL:#{self.url}>")]
end