Class Bundler::RubyVersion
In: lib/bundler/ruby_version.rb
Parent: Object

Methods

Constants

PATTERN = / ruby\s ([\d.]+) # ruby version (?:p(-?\d+))? # optional patchlevel (?:\s\((\S+)\s(.+)\))? # optional engine info /xo   @private

Attributes

engine  [R] 
engine_gem_version  [R] 
engine_versions  [R] 
gem_version  [R] 
patchlevel  [R] 
versions  [R] 

Public Class methods

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.

Public Instance methods

Returns a tuple of these things:

  [diff, this, other]
  The priority of attributes are
  1. engine
  2. ruby_version
  3. engine_version

[Validate]