In Files

  • irb/cmd/help.rb

Parent

Methods

IRB::ExtendCommand::Help

Constants

Ri

Public Instance Methods

execute(*names) click to toggle source
 
               # File irb/cmd/help.rb, line 22
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