Class: Sawtooth::Document::Node
- Inherits:
-
Struct
- Object
- Struct
- Sawtooth::Document::Node
- Defined in:
- lib/sawtooth/document.rb
Overview
A simple Document Node representation, for the node stack.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
13 14 15 |
# File 'lib/sawtooth/document.rb', line 13 def attributes @attributes end |
#name ⇒ Object
Returns the value of attribute name
13 14 15 |
# File 'lib/sawtooth/document.rb', line 13 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace
13 14 15 |
# File 'lib/sawtooth/document.rb', line 13 def namespace @namespace end |
#text ⇒ Object
Returns the value of attribute text
13 14 15 |
# File 'lib/sawtooth/document.rb', line 13 def text @text end |
Instance Method Details
#to_s ⇒ Object
14 |
# File 'lib/sawtooth/document.rb', line 14 def to_s; name end |