| Class | Bundler::RubyVersion |
| In: |
lib/bundler/ruby_version.rb
|
| Parent: | Object |
| PATTERN | = | / ruby\s ([\d.]+) # ruby version (?:p(-?\d+))? # optional patchlevel (?:\s\((\S+)\s(.+)\))? # optional engine info /xo | @private |
| engine | [R] | |
| engine_gem_version | [R] | |
| engine_versions | [R] | |
| gem_version | [R] | |
| patchlevel | [R] | |
| versions | [R] |
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.