The Kernel module is included by class Object, so its methods are available in every Ruby object.
The Kernel instance methods are documented in class Object while the module methods are documented here. These methods are called without a receiver and thus can be called in functional form:
sprintf "%.1f", 1.234 #=> "1.2"
frozen_string_literal: true
RubyGems adds the #gem method to allow activation of specific gem versions and overrides the #require method on Kernel to make gems appear as if they live on the $LOAD_PATH. See the documentation of these methods for further detail.
frozen_string_literal: true
Constants
RUBYGEMS_ACTIVATION_MONITOR = Monitor.new # :nodoc: