Module: RSpec::Support::Ruby

### Home Classes Methods

### In Files

- lib/rspec/support/ruby_features.rb

### Methods

- #jruby?
- #mri?
- #non_mri?
- #rbx?

### Class/Module Index

Quicksearch

- RSpec
- RSpec::CallerFilter
- RSpec::Support
- RSpec::Support::BlockSignature
- RSpec::Support::Differ
- RSpec::Support::DirectoryMaker
- RSpec::Support::EncodedString
- RSpec::Support::FormattingSupport
- RSpec::Support::FuzzyMatcher
- RSpec::Support::HunkGenerator
- RSpec::Support::InSubProcess
- RSpec::Support::LooseSignatureVerifier
- RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
- RSpec::Support::MethodSignature
- RSpec::Support::MethodSignatureVerifier
- RSpec::Support::OS
- RSpec::Support::RecursiveConstMethods
- RSpec::Support::Ruby
- RSpec::Support::RubyFeatures
- RSpec::Support::ShellOut
- RSpec::Support::Spec
- RSpec::Support::StdErrSplitter
- RSpec::Support::StrictSignatureVerifier
- RSpec::Support::Version
- RSpec::Support::VersionChecker
- RSpec::Support::Warnings
- RSpec::Support::WarningsPrevention
- RSpec::Support::WithIsolatedStdErr
- Object
- RSpecHelpers

No matching classes.

# RSpec::Support::Ruby

@api private

Provides query methods for different rubies

### Public Instance Methods

jruby?() click to toggle source

    # File lib/rspec/support/ruby_features.rb, line 24
    def jruby?
      RUBY_PLATFORM == 'java'
    end

mri?() click to toggle source

    # File lib/rspec/support/ruby_features.rb, line 36
    def mri?
      !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby'
    end

non_mri?() click to toggle source

    # File lib/rspec/support/ruby_features.rb, line 32
    def non_mri?
      !mri?
    end

rbx?() click to toggle source

    # File lib/rspec/support/ruby_features.rb, line 28
    def rbx?
      defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.