Class: Moxml::Materializer::Buffers
- Inherits:
-
Object
- Object
- Moxml::Materializer::Buffers
- 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
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#namespaces ⇒ Object
readonly
Returns the value of attribute namespaces.
Instance Method Summary collapse
-
#initialize ⇒ Buffers
constructor
A new instance of Buffers.
Constructor Details
#initialize ⇒ Buffers
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
45 46 47 |
# File 'lib/moxml/materializer.rb', line 45 def attributes @attributes end |
#namespaces ⇒ Object (readonly)
Returns the value of attribute namespaces.
45 46 47 |
# File 'lib/moxml/materializer.rb', line 45 def namespaces @namespaces end |