class Bundler::RubyVersion

def self.from_string(string)

Returns:
  • (RubyVersion, Nil) - The version if the string is a valid RubyVersion

Parameters:
  • the (String) -- version string to match.
def self.from_string(string)
  new($1, $2, $3, $4) if string =~ PATTERN
end