Class: Scale::Text

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/scale/text.rb

Instance Attribute Summary

Attributes included from Node

#content

Instance Method Summary collapse

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_tagObject



24
25
26
# File 'lib/scale/text.rb', line 24

def xml_tag
  :text_
end