method

ensure_required_ruby_version_met

Importance_0
v2_6_3 - Show latest stable - 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 633
  def ensure_required_ruby_version_met # :nodoc:
    if rrv = spec.required_ruby_version
      ruby_version = Gem.ruby_version
      unless rrv.satisfied_by? ruby_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.