Class: Sawtooth::Document::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/sawtooth/document.rb

Overview

A simple Document Node representation, for the node stack.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



13
14
15
# File 'lib/sawtooth/document.rb', line 13

def attributes
  @attributes
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/sawtooth/document.rb', line 13

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



13
14
15
# File 'lib/sawtooth/document.rb', line 13

def namespace
  @namespace
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



13
14
15
# File 'lib/sawtooth/document.rb', line 13

def text
  @text
end

Instance Method Details

#to_sObject



14
# File 'lib/sawtooth/document.rb', line 14

def to_s; name end