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
Instance Method Summary collapse
- #abort ⇒ Object (also: #xx, #qq)
- #method_missing(method, *args, &block) ⇒ Object
- #original_abort ⇒ Object
Methods included from IRT::Commands::Ri
Methods included from IRT::Commands::Help
Methods included from IRT::Commands::Core
#irt, #original_rerun, #pager, #rerun, #restart, #rr, #run, #sh, #vdiff
Methods included from IRT::Commands::Edit
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
#abort ⇒ Object 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_abort ⇒ Object
24 |
# File 'lib/irt/extensions/irb/commands.rb', line 24 alias_method :original_abort, :abort |