Class: RedSnow::Sourcemap::Blueprint
- Defined in:
- lib/redsnow/sourcemap.rb
Overview
Blueprint source map node
Instance Attribute Summary collapse
-
#metadata ⇒ Metadata
tool-specific metadata collection or nil.
-
#resource_groups ⇒ Array<ResourceGroup>
array of resource groups.
Attributes inherited from NamedNode
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(sourcemap) ⇒ Blueprint
constructor
A new instance of Blueprint.
Constructor Details
#initialize(sourcemap) ⇒ Blueprint
Returns a new instance of Blueprint.
247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/redsnow/sourcemap.rb', line 247 def initialize(sourcemap) return if sourcemap.nil? super(sourcemap) @metadata = Metadata.new(sourcemap['metadata']) @resource_groups = [] sourcemap.key?('resourceGroups') && sourcemap['resourceGroups'].each do |resource_group| @resource_groups << ResourceGroup.new(resource_group) end end |
Instance Attribute Details
#metadata ⇒ Metadata
tool-specific metadata collection or nil
242 243 244 |
# File 'lib/redsnow/sourcemap.rb', line 242 def @metadata end |
#resource_groups ⇒ Array<ResourceGroup>
array of resource groups
242 243 244 |
# File 'lib/redsnow/sourcemap.rb', line 242 def resource_groups @resource_groups end |