Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/versus/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#to_versionObject

Converts the String into a version number.



7
8
9
# File 'lib/versus/core_ext/string.rb', line 7

def to_version
  Version::Number.parse(self)
end