Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/version/ext/string.rb
Instance Method Summary collapse
-
#to_version ⇒ Object
Converts the String into a version number.
Instance Method Details
#to_version ⇒ Object
Converts the String into a version number.
7 8 9 |
# File 'lib/version/ext/string.rb', line 7 def to_version Version.new *self.split(%r{\.}) end |