Class: RedSnow::Sourcemap::Metadata
- Defined in:
- lib/redsnow/sourcemap.rb
Overview
Metadata source map collection node
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
Instance Method Summary collapse
-
#initialize(sc_sm_metadata_collection_handle) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(sc_sm_metadata_collection_handle) ⇒ Metadata
Returns a new instance of Metadata.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/redsnow/sourcemap.rb', line 39 def initialize() = RedSnow::Binding.() @collection = [] return if == 0 = - 1 (0..).each do |index| = RedSnow::Binding.(, index) @collection << SourceMap.new(RedSnow::Binding.()) end end |
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
36 37 38 |
# File 'lib/redsnow/sourcemap.rb', line 36 def collection @collection end |