Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/version/ext/hash.rb
Instance Method Summary collapse
-
#to_version ⇒ Object
Converts the Hash into a version number.
Instance Method Details
#to_version ⇒ Object
Converts the Hash into a version number.
7 8 9 |
# File 'lib/version/ext/hash.rb', line 7 def to_version Version.new *self.values_at(:major, :minor, :revision, :rest) end |