????JFIF??x?x????'
| Server IP : 172.67.174.47  /  Your IP : 216.73.216.83 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/./root/opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/generator/ | 
| Upload File : | 
require 'rdoc/generator'
require 'rdoc/ri'
##
# Generates ri data files
class RDoc::Generator::RI
  RDoc::RDoc.add_generator self
  ##
  # Description of this generator
  DESCRIPTION = 'creates ri data files'
  ##
  # Set up a new ri generator
  def initialize options #:not-new:
    @options     = options
    @old_siginfo = nil
    @current     = nil
    @store          = RDoc::RI::Store.new '.'
    @store.dry_run  = @options.dry_run
    @store.encoding = @options.encoding if @options.respond_to? :encoding
  end
  ##
  # Build the initial indices and output objects based on an array of TopLevel
  # objects containing the extracted information.
  def generate top_levels
    install_siginfo_handler
    @store.load_cache
    RDoc::TopLevel.all_classes_and_modules.each do |klass|
      @current = "#{klass.class}: #{klass.full_name}"
      @store.save_class klass
      klass.each_method do |method|
        @current = "#{method.class}: #{method.full_name}"
        @store.save_method klass, method
      end
      klass.each_attribute do |attribute|
        @store.save_method klass, attribute
      end
    end
    @current = 'saving cache'
    @store.save_cache
  ensure
    @current = nil
    remove_siginfo_handler
  end
  ##
  # Installs a siginfo handler that prints the current filename.
  def install_siginfo_handler
    return unless Signal.list.key? 'INFO'
    @old_siginfo = trap 'INFO' do
      puts @current if @current
    end
  end
  ##
  # Removes a siginfo handler and replaces the previous
  def remove_siginfo_handler
    return unless Signal.list.key? 'INFO'
    handler = @old_siginfo || 'DEFAULT'
    trap 'INFO', handler
  end
end