Class: Bundler::CurrentRuby

### Home Classes Methods

### In Files

- lib/bundler/current_ruby.rb

### Parent

Object

### Methods

- #jruby?
- #jruby_18?
- #jruby_19?
- #maglev?
- #mingw?
- #mingw_18?
- #mingw_19?
- #mingw_20?
- #mingw_21?
- #mingw_22?
- #mri?
- #mri_18?
- #mri_19?
- #mri_20?
- #mri_21?
- #mri_22?
- #mswin64?
- #mswin64_19?
- #mswin64_20?
- #mswin64_21?
- #mswin64_22?
- #mswin?
- #mswin_18?
- #mswin_19?
- #mswin_20?
- #mswin_21?
- #mswin_22?
- #on_18?
- #on_19?
- #on_20?
- #on_21?
- #on_22?
- #rbx?
- #ruby?
- #ruby_18?
- #ruby_19?
- #ruby_20?
- #ruby_21?
- #ruby_22?
- #x64_mingw?
- #x64_mingw_20?
- #x64_mingw_21?
- #x64_mingw_22?

### Files

- bundle
- bundle-config
- bundle-config.txt
- bundle-exec
- bundle-exec.txt
- bundle-install
- bundle-install.txt
- bundle-package
- bundle-package.txt
- bundle-platform
- bundle-platform.txt
- bundle-update
- bundle-update.txt
- bundle.txt
- gemfile.5.txt
- Executable
- Gemfile

### Class/Module Index

Quicksearch

- Bundler
- Bundler::BundlerError
- Bundler::CLI
- Bundler::CLI::Binstubs
- Bundler::CLI::Cache
- Bundler::CLI::Check
- Bundler::CLI::Clean
- Bundler::CLI::Common
- Bundler::CLI::Config
- Bundler::CLI::Console
- Bundler::CLI::Exec
- Bundler::CLI::Gem
- Bundler::CLI::Init
- Bundler::CLI::Inject
- Bundler::CLI::Install
- Bundler::CLI::Lock
- Bundler::CLI::Open
- Bundler::CLI::Outdated
- Bundler::CLI::Package
- Bundler::CLI::Platform
- Bundler::CLI::Show
- Bundler::CLI::Update
- Bundler::CLI::Viz
- Bundler::CurrentRuby
- Bundler::CyclicDependencyError
- Bundler::Definition
- Bundler::DepProxy
- Bundler::Dependency
- Bundler::Deployment
- Bundler::Deprecate
- Bundler::DeprecatedError
- Bundler::Dsl
- Bundler::Dsl::DSLError
- Bundler::EndpointSpecification
- Bundler::Env
- Bundler::Environment
- Bundler::Fetcher
- Bundler::Fetcher::AuthenticationRequiredError
- Bundler::Fetcher::BadAuthenticationError
- Bundler::Fetcher::Base
- Bundler::Fetcher::CertificateFailureError
- Bundler::Fetcher::Dependency
- Bundler::Fetcher::Downloader
- Bundler::Fetcher::FallbackError
- Bundler::Fetcher::Index
- Bundler::Fetcher::NetworkDownError
- Bundler::Fetcher::SSLError
- Bundler::GemHelper
- Bundler::GemHelpers
- Bundler::GemInstaller
- Bundler::GemNotFound
- Bundler::GemfileError
- Bundler::GemfileLockNotFound
- Bundler::GemfileNotFound
- Bundler::GemspecError
- Bundler::GitError
- Bundler::Graph
- Bundler::Graph::GraphVizClient
- Bundler::HTTPError
- Bundler::Index
- Bundler::Injector
- Bundler::InstallError
- Bundler::InstallHookError
- Bundler::Installer
- Bundler::InvalidOption
- Bundler::LazySpecification
- Bundler::LockfileError
- Bundler::LockfileParser
- Bundler::MarshalError
- Bundler::MatchPlatform
- Bundler::Molinillo
- Bundler::Molinillo::CircularDependencyError
- Bundler::Molinillo::DependencyGraph
- Bundler::Molinillo::DependencyGraph::Vertex
- Bundler::Molinillo::DependencyState
- Bundler::Molinillo::NoSuchDependencyError
- Bundler::Molinillo::PossibilityState
- Bundler::Molinillo::Resolver
- Bundler::Molinillo::Resolver::Resolution
- Bundler::Molinillo::ResolverError
- Bundler::Molinillo::SpecificationProvider
- Bundler::Molinillo::UI
- Bundler::Molinillo::VersionConflict
- Bundler::PathError
- Bundler::ProductionError
- Bundler::RemoteSpecification
- Bundler::Resolver
- Bundler::Resolver::Molinillo
- Bundler::Resolver::Molinillo::VersionConflict
- Bundler::Resolver::SpecGroup
- Bundler::Retry
- Bundler::RubyDsl
- Bundler::RubyVersion
- Bundler::RubyVersionMismatch
- Bundler::RubygemsIntegration
- Bundler::RubygemsIntegration::AlmostModern
- Bundler::RubygemsIntegration::Ancient
- Bundler::RubygemsIntegration::Future
- Bundler::RubygemsIntegration::Gem
- Bundler::RubygemsIntegration::Legacy
- Bundler::RubygemsIntegration::Legacy::Gem::SourceIndex
- Bundler::RubygemsIntegration::Modern
- Bundler::RubygemsIntegration::MoreFuture
- Bundler::RubygemsIntegration::MoreModern
- Bundler::RubygemsIntegration::Transitional
- Bundler::Runtime
- Bundler::SecurityError
- Bundler::Settings
- Bundler::SharedHelpers
- Bundler::SimilarityDetector
- Bundler::Source
- Bundler::Source::Git
- Bundler::Source::Git::GitCommandError
- Bundler::Source::Git::GitNotAllowedError
- Bundler::Source::Git::GitNotInstalledError
- Bundler::Source::Git::GitProxy
- Bundler::Source::Path
- Bundler::Source::Path::Installer
- Bundler::Source::Rubygems
- Bundler::Source::Rubygems::Remote
- Bundler::SourceList
- Bundler::SpecSet
- Bundler::StubSpecification
- Bundler::SystemRubyVersion
- Bundler::Thor
- Bundler::Thor::Actions
- Bundler::Thor::Actions::ClassMethods
- Bundler::Thor::AmbiguousCommandError
- Bundler::Thor::Base
- Bundler::Thor::Base::ClassMethods
- Bundler::Thor::Command
- Bundler::Thor::DynamicCommand
- Bundler::Thor::Error
- Bundler::Thor::Group
- Bundler::Thor::HiddenCommand
- Bundler::Thor::Invocation
- Bundler::Thor::Invocation::ClassMethods
- Bundler::Thor::InvocationError
- Bundler::Thor::LineEditor
- Bundler::Thor::LineEditor::Basic
- Bundler::Thor::LineEditor::Readline
- Bundler::Thor::LineEditor::Readline::PathCompletion
- Bundler::Thor::MalformattedArgumentError
- Bundler::Thor::RakeCompat
- Bundler::Thor::RequiredArgumentMissingError
- Bundler::Thor::Shell
- Bundler::Thor::Shell::Basic
- Bundler::Thor::Shell::Color
- Bundler::Thor::Shell::HTML
- Bundler::Thor::UndefinedCommandError
- Bundler::Thor::UnknownArgumentError
- Bundler::Thor::Util
- Bundler::UI
- Bundler::UI::RGProxy
- Bundler::UI::Shell
- Bundler::UI::Silent
- Bundler::VersionConflict
- Bundler::Worker
- Bundler::Worker::WrappedException
- Gem
- Gem::Dependency
- Gem::Platform
- Gem::Requirement
- Gem::Specification
- Net
- Net::HTTP
- Net::HTTP::Persistent
- Net::HTTP::Persistent::Error
- Net::HTTP::Persistent::SSLReuse
- ParallelInstaller
- ParallelInstaller::SpecInstallation
- Object

No matching classes.

# Bundler::CurrentRuby

### Public Instance Methods

jruby?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 82
    def jruby?
      defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
    end

jruby_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 86
    def jruby_18?
      jruby? && on_18?
    end

jruby_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 90
    def jruby_19?
      jruby? && on_19?
    end

maglev?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 94
    def maglev?
      defined?(RUBY_ENGINE) && RUBY_ENGINE == "maglev"
    end

mingw?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 142
    def mingw?
      Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu != 'x64'
    end

mingw_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 146
    def mingw_18?
      mingw? && on_18?
    end

mingw_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 150
    def mingw_19?
      mingw? && on_19?
    end

mingw_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 154
    def mingw_20?
      mingw? && on_20?
    end

mingw_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 158
    def mingw_21?
      mingw? && on_21?
    end

mingw_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 162
    def mingw_22?
      mingw? && on_22?
    end

mri?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 54
    def mri?
      !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby")
    end

mri_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 58
    def mri_18?
      mri? && on_18?
    end

mri_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 62
    def mri_19?
      mri? && on_19?
    end

mri_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 66
    def mri_20?
      mri? && on_20?
    end

mri_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 70
    def mri_21?
      mri? && on_21?
    end

mri_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 74
    def mri_22?
      mri? && on_22?
    end

mswin64?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 122
    def mswin64?
      Bundler::WINDOWS && Gem::Platform.local.os == "mswin64" && Gem::Platform.local.cpu == 'x64'
    end

mswin64_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 126
    def mswin64_19?
      mswin64? && on_19?
    end

mswin64_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 130
    def mswin64_20?
      mswin64? && on_20?
    end

mswin64_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 134
    def mswin64_21?
      mswin64? && on_21?
    end

mswin64_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 138
    def mswin64_22?
      mswin64? && on_22?
    end

mswin?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 98
    def mswin?
      Bundler::WINDOWS
    end

mswin_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 102
    def mswin_18?
      mswin? && on_18?
    end

mswin_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 106
    def mswin_19?
      mswin? && on_19?
    end

mswin_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 110
    def mswin_20?
      mswin? && on_20?
    end

mswin_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 114
    def mswin_21?
      mswin? && on_21?
    end

mswin_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 118
    def mswin_22?
      mswin? && on_22?
    end

on_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 10
    def on_18?
      RUBY_VERSION =~ /^1\.8/
    end

on_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 14
    def on_19?
      RUBY_VERSION =~ /^1\.9/
    end

on_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 18
    def on_20?
      RUBY_VERSION =~ /^2\.0/
    end

on_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 22
    def on_21?
      RUBY_VERSION =~ /^2\.1/
    end

on_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 26
    def on_22?
      RUBY_VERSION =~ /^2\.2/
    end

rbx?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 78
    def rbx?
      ruby? && defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx"
    end

ruby?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 30
    def ruby?
      !mswin? && (!defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" || RUBY_ENGINE == "maglev")
    end

ruby_18?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 34
    def ruby_18?
      ruby? && on_18?
    end

ruby_19?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 38
    def ruby_19?
      ruby? && on_19?
    end

ruby_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 42
    def ruby_20?
      ruby? && on_20?
    end

ruby_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 46
    def ruby_21?
      ruby? && on_21?
    end

ruby_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 50
    def ruby_22?
      ruby? && on_22?
    end

x64_mingw?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 166
    def x64_mingw?
      Bundler::WINDOWS && Gem::Platform.local.os == "mingw32" && Gem::Platform.local.cpu == 'x64'
    end

x64_mingw_20?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 170
    def x64_mingw_20?
      x64_mingw? && on_20?
    end

x64_mingw_21?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 174
    def x64_mingw_21?
      x64_mingw? && on_21?
    end

x64_mingw_22?() click to toggle source

    # File lib/bundler/current_ruby.rb, line 178
    def x64_mingw_22?
      x64_mingw? && on_22?
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.