Class: Moxml::Materializer::Buffers

Inherits:
Object
  • Object
show all
Defined in:
lib/moxml/materializer.rb

Overview

The two flat, reused field buffers a materialize_fields block receives (issue #143). One instance streams an entire subtree; both arrays are cleared and refilled per element record.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuffers

Returns a new instance of Buffers.



47
48
49
50
# File 'lib/moxml/materializer.rb', line 47

def initialize
  @attributes = []
  @namespaces = []
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



45
46
47
# File 'lib/moxml/materializer.rb', line 45

def attributes
  @attributes
end

#namespacesObject (readonly)

Returns the value of attribute namespaces.



45
46
47
# File 'lib/moxml/materializer.rb', line 45

def namespaces
  @namespaces
end