Module: IRB::ExtendCommandBundle

Includes:
FileUtils, IRT::Commands::Core, IRT::Commands::Edit, IRT::Commands::Help, IRT::Commands::Log, IRT::Commands::Ri, IRT::Commands::Test
Defined in:
lib/irt/extensions/irb/commands.rb

Overview

:nodoc:

Constant Summary

Constants included from IRT::Commands::Ri

IRT::Commands::Ri::GEM

Instance Method Summary collapse

Methods included from IRT::Commands::Ri

#pri, reset_choices_map, #ri

Methods included from IRT::Commands::Help

#irt_help

Methods included from IRT::Commands::Core

#irt, #original_rerun, #pager, #rerun, #restart, #rr, #run, #sh, #vdiff

Methods included from IRT::Commands::Edit

#copy_all_lines, #copy_lines

Methods included from IRT::Commands::Test

#add_desc, #add_test, #save_as

Methods included from IRT::Commands::Log

#full_log, #log, #print_all_lines, #print_lines, #status

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



34
35
36
37
38
# File 'lib/irt/extensions/irb/commands.rb', line 34

def method_missing(method, *args, &block)
  IRB.conf[:MAIN_CONTEXT] && IRB.conf[:MAIN_CONTEXT].irt_mode == :file && IRT::Directives.respond_to?(method) ?
    IRT::Directives.send(method, *args, &block) :
    super
end

Instance Method Details

#abortObject Also known as: xx, qq



25
26
27
28
29
30
# File 'lib/irt/extensions/irb/commands.rb', line 25

def abort
  ensure_cli
  IRT::Session.exit_all = true
  IRT::History.save_history
  original_abort
end

#original_abortObject



24
# File 'lib/irt/extensions/irb/commands.rb', line 24

alias_method :original_abort, :abort