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.



7
8
9
10
# File 'lib/scale/text.rb', line 7

def initialize(text, attributes = {})
  @content = text
  super(attributes)
end

Instance Method Details

#xml_tagObject



12
13
14
# File 'lib/scale/text.rb', line 12

def xml_tag
  :text_
end