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