Class: Scale::Text
Instance Attribute Summary
Attributes included from Node
Instance Method Summary collapse
-
#initialize(text, attributes = {}) ⇒ Text
constructor
A new instance of Text.
- #xml_tag ⇒ Object
Methods included from Node
#add, #append_to, #children, #each, #to_xml, #xml_attributes
Constructor Details
#initialize(text, attributes = {}) ⇒ Text
Returns a new instance of Text.
7 8 9 10 |
# File 'lib/scale/text.rb', line 7 def initialize(text, attributes = {}) @content = text super(attributes) end |
Instance Method Details
#xml_tag ⇒ Object
12 13 14 |
# File 'lib/scale/text.rb', line 12 def xml_tag :text_ end |