PHP 8.2.31
Preview: help.rb Size: 664 B
//proc/thread-self/root/opt/alt/ruby21/lib64/ruby/2.1.0/irb/cmd/help.rb

#
#   help.rb - helper using ri
#   	$Release Version: 0.9.6$
#   	$Revision: 38358 $
#
# --
#
#
#

require 'rdoc/ri/driver'

require "irb/cmd/nop.rb"

# :stopdoc:
module IRB
  module ExtendCommand
    class Help<Nop
      begin
        Ri = RDoc::RI::Driver.new
      rescue SystemExit
      else
        def execute(*names)
          if names.empty?
            Ri.interactive
            return
          end
          names.each do |name|
            begin
              Ri.display_name(name.to_s)
            rescue RDoc::RI::Error
              puts $!.message
            end
          end
          nil
        end
      end
    end
  end
end
# :startdoc:

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
486 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
573 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
664 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
1.13 KB lrw-r--r-- 2012-12-13 05:22:30
Edit Download
551 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
611 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download
596 B lrw-r--r-- 2012-12-13 05:22:30
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).