PHP 8.2.31
Preview: help.rb Size: 639 B
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/irb/cmd/help.rb

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

require 'rdoc/ri/driver'

require "irb/cmd/nop.rb"

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

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
462 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download
557 B lrw-r--r-- 2010-05-23 08:48:44
Edit Download
639 B lrw-r--r-- 2011-06-29 13:51:30
Edit Download
1.10 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
526 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download
586 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download
571 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download

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