Method: Bundler::RubyVersion.from_string
- Defined in:
- lib/bundler/ruby_version.rb
permalink .from_string(string) ⇒ RubyVersion, Nil
Returns a RubyVersion from the given string.
64 65 66 |
# File 'lib/bundler/ruby_version.rb', line 64 def self.from_string(string) new($1, $2, $3, $4) if string =~ PATTERN end |