Class: Dapp::Dimg::Config::Directive::Artifact
- Inherits:
-
ArtifactBase
- Object
- Config::Directive::Base
- Base
- ArtifactBase
- Dapp::Dimg::Config::Directive::Artifact
- Defined in:
- lib/dapp/dimg/config/directive/artifact.rb
Defined Under Namespace
Classes: Export
Instance Attribute Summary collapse
-
#_config ⇒ Object
readonly
Returns the value of attribute _config.
Attributes inherited from ArtifactBase
Instance Method Summary collapse
- #_export ⇒ Object
-
#initialize(config:, **kwargs, &blk) ⇒ Artifact
constructor
A new instance of Artifact.
Methods inherited from ArtifactBase
Methods inherited from Base
Methods inherited from Config::Directive::Base
Constructor Details
#initialize(config:, **kwargs, &blk) ⇒ Artifact
Returns a new instance of Artifact.
8 9 10 11 |
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 8 def initialize(config:, **kwargs, &blk) @_config = config super(**kwargs, &blk) end |
Instance Attribute Details
#_config ⇒ Object (readonly)
Returns the value of attribute _config.
6 7 8 |
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 6 def _config @_config end |
Instance Method Details
#_export ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 13 def _export super do |export| export._before ||= @_before export._after ||= @_after export._config = _config end end |