Class: Dapp::Dimg::Config::Directive::Artifact

Inherits:
ArtifactBase show all
Defined in:
lib/dapp/dimg/config/directive/artifact.rb

Defined Under Namespace

Classes: Export

Instance Attribute Summary collapse

Attributes inherited from ArtifactBase

#_group, #_owner

Instance Method Summary collapse

Constructor Details

#initialize(config:, **kwargs, &blk) ⇒ Artifact

Returns a new instance of Artifact.



8
9
10
11
12
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 8

def initialize(config:, **kwargs, &blk)
  @_config = config

  super(**kwargs, &blk)
end

Instance Attribute Details

#_configObject (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

#_exportObject



14
15
16
17
18
19
20
# File 'lib/dapp/dimg/config/directive/artifact.rb', line 14

def _export
  super do |export|
    export._before ||= @_before
    export._after ||= @_after
    export._config = _config
  end
end