REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.65 KB
Close
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/rdoc/generator/ri.rb
Text
Base64
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
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
template
DIR
-
drwxr-xr-x
2024-03-03 22:48:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
darkfish.rb
10.95 KB
lrw-r--r--
2011-08-05 21:21:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
markup.rb
4.50 KB
lrw-r--r--
2011-06-16 04:59:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ri.rb
1.65 KB
lrw-r--r--
2011-06-16 04:59:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).