Class: IRB::Command::Help
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
category, description, execute, help_message, #initialize
Constructor Details
This class inherits a constructor from IRB::Command::Base
Instance Method Details
#execute(command_name) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/irb/command/help.rb', line 9 def execute(command_name) content = if command_name.empty? else if command_class = Command.load_command(command_name) command_class. || command_class.description else "Can't find command `#{command_name}`. Please check the command name and try again.\n\n" end end Pager.page_content(content) end |