Class: SAXMachine::SAXAbstractHandler::StackNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/sax-machine/handlers/sax_abstract_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, config = nil, buffer = NO_BUFFER) ⇒ StackNode

Returns a new instance of StackNode.



8
9
10
11
12
# File 'lib/sax-machine/handlers/sax_abstract_handler.rb', line 8

def initialize(object, config = nil, buffer = NO_BUFFER)
  self.object = object
  self.config = config
  self.buffer = buffer
end

Instance Attribute Details

#bufferObject

Returns the value of attribute buffer

Returns:

  • (Object)

    the current value of buffer



7
8
9
# File 'lib/sax-machine/handlers/sax_abstract_handler.rb', line 7

def buffer
  @buffer
end

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



7
8
9
# File 'lib/sax-machine/handlers/sax_abstract_handler.rb', line 7

def config
  @config
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



7
8
9
# File 'lib/sax-machine/handlers/sax_abstract_handler.rb', line 7

def object
  @object
end