Class: CobraCommander::Package
- Inherits:
-
Object
- Object
- CobraCommander::Package
- Extended by:
- Forwardable
- Defined in:
- lib/cobra_commander/package.rb
Overview
A package within the
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #describe ⇒ Object
-
#initialize(source, path:, dependencies:, name:) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(source, path:, dependencies:, name:) ⇒ Package
Returns a new instance of Package.
14 15 16 17 18 19 |
# File 'lib/cobra_commander/package.rb', line 14 def initialize(source, path:, dependencies:, name:) @source = source @path = path @name = name @dependencies = dependencies end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
10 11 12 |
# File 'lib/cobra_commander/package.rb', line 10 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/cobra_commander/package.rb', line 10 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/cobra_commander/package.rb', line 10 def path @path end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
10 11 12 |
# File 'lib/cobra_commander/package.rb', line 10 def source @source end |
Instance Method Details
#describe ⇒ Object
21 22 23 |
# File 'lib/cobra_commander/package.rb', line 21 def describe "#{name} (#{key})" end |