Class: DataShift::NodeCollection
- Inherits:
-
Object
- Object
- DataShift::NodeCollection
- Extended by:
- Forwardable
- Defined in:
- lib/datashift/node_collection.rb
Overview
Acts as an array of Node
Instance Attribute Summary collapse
-
#doc_context ⇒ Object
Returns the value of attribute doc_context.
Instance Method Summary collapse
-
#initialize(doc_context: nil) ⇒ NodeCollection
constructor
A new instance of NodeCollection.
Constructor Details
#initialize(doc_context: nil) ⇒ NodeCollection
Returns a new instance of NodeCollection.
23 24 25 26 |
# File 'lib/datashift/node_collection.rb', line 23 def initialize(doc_context: nil) @nodes = [] @doc_context = doc_context end |
Instance Attribute Details
#doc_context ⇒ Object
Returns the value of attribute doc_context.
17 18 19 |
# File 'lib/datashift/node_collection.rb', line 17 def doc_context @doc_context end |