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.
19 20 21 22 |
# File 'lib/scale/text.rb', line 19 def initialize(text, attributes = {}) @content = text super(attributes) end |
Instance Method Details
#xml_tag ⇒ Object
24 25 26 |
# File 'lib/scale/text.rb', line 24 def xml_tag :text_ end |