Class: RedSnow::Parameters
- Inherits:
-
BlueprintNode
- Object
- BlueprintNode
- RedSnow::Parameters
- Defined in:
- lib/redsnow/blueprint.rb
Overview
Collection of URI parameters Blueprint AST node
represents 'parameters section'
Instance Attribute Summary collapse
-
#collection ⇒ Array<Parameter>
an array of URI parameters.
Instance Method Summary collapse
-
#initialize(parameters) ⇒ Parameters
constructor
A new instance of Parameters.
Constructor Details
#initialize(parameters) ⇒ Parameters
Returns a new instance of Parameters.
175 176 177 178 179 180 181 182 183 |
# File 'lib/redsnow/blueprint.rb', line 175 def initialize(parameters) @collection = [] return if parameters.nil? parameters.each do |item| @collection << Parameter.new(item) end end |
Instance Attribute Details
#collection ⇒ Array<Parameter>
an array of URI parameters
171 172 173 |
# File 'lib/redsnow/blueprint.rb', line 171 def collection @collection end |