method

create

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Version
create(input) public

Factory method to create a Version object. Input may be a Version or a String. Intended to simplify client code.

ver1 = Version.create('1.3.17')   # -> (Version object)
ver2 = Version.create(ver1)       # -> (ver1)
ver3 = Version.create(nil)        # -> nil
Show source
Register or log in to add new notes.