Flowdock
method

create

Importance_1
Ruby latest stable (v1_9_3_392) - 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.