ruby/lib/irb/command
Stan Lo 04ba96e619 [ruby/irb] Allow defining custom commands in IRB
(https://github.com/ruby/irb/pull/886)

This is a feature that has been requested for a long time. It is now
possible to define custom commands in IRB.

Example usage:

```ruby
require "irb/command"

class HelloCommand < IRB::Command::Base
  description "Prints hello world"
  category "My commands"
  help_message "It doesn't do more than printing hello world."

  def execute
    puts "Hello world"
  end
end

IRB::Command.register(:hello, HelloCommand)
```

888643467c
2024-04-14 11:01:43 +00:00
..
backtrace.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
base.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
break.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
catch.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
chws.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
context.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
continue.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
debug.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
delete.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
disable_irb.rb [ruby/irb] Add disable_irb command to disable debug of binding.irb 2024-03-14 15:40:27 +00:00
edit.rb [ruby/irb] Allow defining custom commands in IRB 2024-04-14 11:01:43 +00:00
exit.rb
finish.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
force_exit.rb
help.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
history.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
info.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
irb_info.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
load.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
ls.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
measure.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
next.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
pushws.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
show_doc.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
show_source.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
step.rb [ruby/irb] Centralize rstrip calls 2024-04-10 17:33:44 +00:00
subirb.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00
whereami.rb [ruby/irb] Command implementation not by method 2024-04-10 16:52:53 +00:00