Class: RedSnow::Metadata
- Inherits:
-
KeyValueCollection
- Object
- BlueprintNode
- KeyValueCollection
- RedSnow::Metadata
- Defined in:
- lib/redsnow/blueprint.rb
Overview
Metadata collection Blueprint AST node
represents 'metadata section'
Instance Attribute Summary
Attributes inherited from KeyValueCollection
Instance Method Summary collapse
-
#initialize(sc_metadata_collection_handle) ⇒ Metadata
constructor
Constructor.
Methods inherited from KeyValueCollection
Constructor Details
#initialize(sc_metadata_collection_handle) ⇒ Metadata
Constructor
92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/redsnow/blueprint.rb', line 92 def initialize() = RedSnow::Binding.() @collection = [] return if == 0 = - 1 (0..).each do |index| = RedSnow::Binding.(, index) @collection << Hash[name: RedSnow::Binding.(), value: RedSnow::Binding.()] end end |