Class: CobraCommander::Dependencies::Yarn::Package
- Inherits:
-
Object
- Object
- CobraCommander::Dependencies::Yarn::Package
- Defined in:
- lib/cobra_commander/dependencies/yarn/package.rb
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.
Instance Method Summary collapse
-
#initialize(path:, dependencies:, name: nil) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(path:, dependencies:, name: nil) ⇒ Package
Returns a new instance of Package.
8 9 10 11 12 |
# File 'lib/cobra_commander/dependencies/yarn/package.rb', line 8 def initialize(path:, dependencies:, name: nil) @path = path @name = untag(name) @dependencies = dependencies.map { |dep| untag(dep) } end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
6 7 8 |
# File 'lib/cobra_commander/dependencies/yarn/package.rb', line 6 def dependencies @dependencies end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/cobra_commander/dependencies/yarn/package.rb', line 6 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/cobra_commander/dependencies/yarn/package.rb', line 6 def path @path end |