Class: RD::Reference::URL
- Defined in:
- lib/rd2odt/rdtool/rd/inline-element.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url_str) ⇒ URL
constructor
A new instance of URL.
- #renew_label ⇒ Object
- #result_of_apply_method_of(visitor, reference, children) ⇒ Object
- #to_label ⇒ Object
- #to_reference_content ⇒ Object
Methods inherited from 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
#url ⇒ Object
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_label ⇒ Object
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_label ⇒ Object
164 165 166 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 164 def to_label "" end |
#to_reference_content ⇒ Object
172 173 174 |
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 172 def to_reference_content [StringElement.new("<URL:#{self.url}>")] end |