method

from_string

ruby latest stable - Class: Bundler::RubyVersion

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

from_string(string)
public

Returns a RubyVersion from the given string. @param [String] the version string to match. @return [RubyVersion,Nil] The version if the string is a valid RubyVersion

description, and nil otherwise.