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