class Bundler::CorruptBundlerInstallError - bundler: Ruby Standard Library Documentation

# class Bundler::CorruptBundlerInstallError

### Public Class Methods

new(loaded_spec) click to toggle source

    # File bundler/errors.rb, line 235
    def initialize(loaded_spec)
      @loaded_spec = loaded_spec
    end

### Public Instance Methods

message() click to toggle source

    # File bundler/errors.rb, line 239
    def message
      "The running version of Bundler (#{Bundler::VERSION}) does not match the version of the specification installed for it (#{@loaded_spec.version}). " \
      "This can be caused by reinstalling Ruby without removing previous installation, leaving around an upgraded default version of Bundler. " \
      "Reinstalling Ruby from scratch should fix the problem."
    end