Class: Igniter::Contracts::Assembly::PackManifest::PackDependency

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(name:, pack: nil) ⇒ PackDependency

Returns a new instance of PackDependency.



27
28
29
30
31
32
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 27

def initialize(name:, pack: nil)
  super(
    name: name.to_sym,
    pack: pack
  )
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



26
27
28
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 26

def name
  @name
end

#packObject

Returns the value of attribute pack

Returns:

  • (Object)

    the current value of pack



26
27
28
# File 'lib/igniter/contracts/assembly/pack_manifest.rb', line 26

def pack
  @pack
end