Class: RedSnow::Sourcemap::Metadata

Inherits:
Node
  • Object
show all
Defined in:
lib/redsnow/sourcemap.rb

Overview

Metadata source map collection node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sc_sm_metadata_collection_handle) ⇒ Metadata

Returns a new instance of Metadata.

Parameters:

  • sc_sm_metadata_collection_handle (FFI::Pointer)


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

#collectionObject

Returns the value of attribute collection.



36
37
38
# File 'lib/redsnow/sourcemap.rb', line 36

def collection
  @collection
end