Module: Version

Defined in:
lib/versus/file.rb,
lib/versus/number.rb,
lib/versus/resolver.rb,
lib/versus/constraint.rb,
lib/versus/exceptions.rb,
lib/versus/file/plain_format.rb,
lib/versus/file/jeweler_format.rb

Defined Under Namespace

Classes: Constraint, Exception, File, Number, Resolver

Class Method Summary collapse

Class Method Details

.[](number) ⇒ Object

Shortcut for ‘Version::Number.parse()`.



6
7
8
# File 'lib/versus/number.rb', line 6

def self.[](number)
  Number.parse(number)
end