method

ensure_required_ruby_version_met

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Installer
ensure_required_ruby_version_met() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/installer.rb, line 615
  def ensure_required_ruby_version_met # :nodoc:
    if rrv = spec.required_ruby_version then
      unless rrv.satisfied_by? Gem.ruby_version then
        ruby_version = Gem.ruby_api_version
        raise Gem::RuntimeRequirementNotMetError,
          "#{spec.name} requires Ruby version #{rrv}. The current ruby version is #{ruby_version}."
      end
    end
  end
Register or log in to add new notes.