Class: RedSnow::Sourcemap::Parameters
- Defined in:
- lib/redsnow/sourcemap.rb
Overview
Parameters source map collection node
Instance Attribute Summary collapse
-
#collection ⇒ Array<Parameter>
an array of URI parameters.
Instance Method Summary collapse
-
#initialize(sourcemap) ⇒ Parameters
constructor
A new instance of Parameters.
Constructor Details
#initialize(sourcemap) ⇒ Parameters
Returns a new instance of Parameters.
105 106 107 108 109 110 111 112 113 |
# File 'lib/redsnow/sourcemap.rb', line 105 def initialize(sourcemap) @collection = [] return if sourcemap.nil? sourcemap.each do |parameter| @collection << Parameter.new(parameter) end end |
Instance Attribute Details
#collection ⇒ Array<Parameter>
an array of URI parameters
103 104 105 |
# File 'lib/redsnow/sourcemap.rb', line 103 def collection @collection end |