Class: Bozo::Packagers::Rubygems::RubyGemVersion

Inherits:
Versioning::Version
  • Object
show all
Defined in:
lib/bozo/packagers/rubygems.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(version) ⇒ Object



38
39
40
# File 'lib/bozo/packagers/rubygems.rb', line 38

def self.parse(version)
  new version.major, version.minor, version.patch, version.extension
end

Instance Method Details

#to_sObject



42
43
44
# File 'lib/bozo/packagers/rubygems.rb', line 42

def to_s
  "#{major}.#{minor}.#{patch}.#{extension}"
end