| Server IP : 51.79.230.26 / Your IP : 216.73.217.43 Web Server : LiteSpeed System : Linux sg2.exonhost.com 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : mukutpub ( 1151) PHP Version : 8.2.33 Disable Function : eval, show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/opt/alt/ruby40/share/rubygems/rubygems/ |
Upload File : |
# frozen_string_literal: true
require_relative "../rubygems"
begin
require "rdoc/rubygems_hook"
module Gem
##
# Returns whether RDoc defines its own install hooks through a RubyGems
# plugin. This and whatever is guarded by it can be removed once no
# supported Ruby ships with RDoc older than 6.9.0.
def self.rdoc_hooks_defined_via_plugin?
Gem::Version.new(::RDoc::VERSION) >= Gem::Version.new("6.9.0")
end
if rdoc_hooks_defined_via_plugin?
RDoc = ::RDoc::RubyGemsHook
else
RDoc = ::RDoc::RubygemsHook
Gem.done_installing(&Gem::RDoc.method(:generation_hook))
end
end
rescue LoadError
end