Class: Dapp::Dimg::Config::Directive::ArtifactBase
- Inherits:
-
Base
- Object
- Config::Base
- Config::Directive::Base
- Base
- Dapp::Dimg::Config::Directive::ArtifactBase
- Defined in:
- lib/dapp/dimg/config/directive/artifact_base.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Export
Instance Attribute Summary collapse
-
#_group ⇒ Object
readonly
Returns the value of attribute _group.
-
#_owner ⇒ Object
readonly
Returns the value of attribute _owner.
Instance Method Summary collapse
- #_export ⇒ Object
-
#initialize(**kwargs, &blk) ⇒ ArtifactBase
constructor
A new instance of ArtifactBase.
Constructor Details
#initialize(**kwargs, &blk) ⇒ ArtifactBase
Returns a new instance of ArtifactBase.
8 9 10 11 12 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 8 def initialize(**kwargs, &blk) @_export = [] super(**kwargs, &blk) end |
Instance Attribute Details
#_group ⇒ Object (readonly)
Returns the value of attribute _group.
6 7 8 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 6 def _group @_group end |
#_owner ⇒ Object (readonly)
Returns the value of attribute _owner.
6 7 8 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 6 def _owner @_owner end |
Instance Method Details
#_export ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/dapp/dimg/config/directive/artifact_base.rb', line 14 def _export @_export.each do |export| export._owner ||= @_owner export._group ||= @_group yield(export) if block_given? end end |