Class: RSpec::Support::VersionChecker

### Home Classes Methods

### In Files

- lib/rspec/support/version_checker.rb

### Parent

Object

### Methods

- ::new
- #check_version!

### 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::ObjectFormatter
- 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::WithIsolatedStdErr
- Object
- RSpecHelpers

No matching classes.

# RSpec::Support::VersionChecker

@private

### Public Class Methods

new(library_name, library_version, min_patch_level) click to toggle source

    # File lib/rspec/support/version_checker.rb, line 7
    def initialize(library_name, library_version, min_patch_level)
      @library_name, @library_version = library_name, library_version
      @min_patch_level = min_patch_level

      @major,     @minor,     @patch     = parse_version(library_version)
      @min_major, @min_minor, @min_patch = parse_version(min_patch_level)

      @comparison_result = compare_version
    end

### Public Instance Methods

check_version!() click to toggle source

    # File lib/rspec/support/version_checker.rb, line 17
    def check_version!
      raise_too_low_error if too_low?
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.