class String
Public Instance Methods
to_version()
click to toggle source
Converts the String
into a version number.
# File lib/version/ext/string.rb, line 7 def to_version Version.new *self.split(%r{\.}) end