class Hash

Public Instance Methods

to_version() click to toggle source

Converts the Hash into a version number.

# File lib/version/ext/hash.rb, line 7
def to_version
  Version.new *self.values_at(:major, :minor, :revision, :rest)
end