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