Class: RedSnow::Sourcemap::ResourceGroup
- Defined in:
- lib/redsnow/sourcemap.rb
Overview
Resource group source map node
Instance Attribute Summary collapse
-
#resources ⇒ Array<Resource>
array of resources in the group.
Attributes inherited from NamedNode
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(sourcemap) ⇒ ResourceGroup
constructor
A new instance of ResourceGroup.
Constructor Details
#initialize(sourcemap) ⇒ ResourceGroup
Returns a new instance of ResourceGroup.
228 229 230 231 232 233 234 235 |
# File 'lib/redsnow/sourcemap.rb', line 228 def initialize(sourcemap) super(sourcemap) @resources = [] sourcemap.key?('resources') && sourcemap['resources'].each do |resource| @resources << Resource.new(resource) end end |
Instance Attribute Details
#resources ⇒ Array<Resource>
array of resources in the group
224 225 226 |
# File 'lib/redsnow/sourcemap.rb', line 224 def resources @resources end |