Class: Getv::Package::Npm
- Inherits:
-
Getv::Package
- Object
- Getv::Package
- Getv::Package::Npm
- Defined in:
- lib/getv/package/npm.rb
Overview
Getv::Package::Npm class
Instance Attribute Summary
Attributes inherited from Getv::Package
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ Npm
constructor
A new instance of Npm.
Methods inherited from Getv::Package
create, #defaults, #latest_version, #update_versions, #versions
Constructor Details
#initialize(name, opts = {}) ⇒ Npm
Returns a new instance of Npm.
7 8 9 10 11 |
# File 'lib/getv/package/npm.rb', line 7 def initialize(name, opts = {}) opts = defaults.merge(opts) opts = { npm: name[/node(js)?-(.*)/, 2] || name }.merge(opts) super name, opts end |