Class: Igniter::Contracts::Assembly::PackManifest::NodeContract

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/contracts/assembly/pack_manifest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind:, requires_dsl: true, requires_runtime: true) ⇒ NodeContract

Returns a new instance of NodeContract.



17
18
19
20
21
22
23
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 17

def initialize(kind:, requires_dsl: true, requires_runtime: true)
  super(
    kind: kind.to_sym,
    requires_dsl: requires_dsl,
    requires_runtime: requires_runtime
  )
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



16
17
18
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 16

def kind
  @kind
end

#requires_dslObject

Returns the value of attribute requires_dsl

Returns:

  • (Object)

    the current value of requires_dsl



16
17
18
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 16

def requires_dsl
  @requires_dsl
end

#requires_runtimeObject

Returns the value of attribute requires_runtime

Returns:

  • (Object)

    the current value of requires_runtime



16
17
18
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 16

def requires_runtime
  @requires_runtime
end