module IRB::ExtendCommandBundle
For backward compatibility, we need to keep this module:
-
As a container of helper methods
-
As a place to register commands with the deprecated
def_extend_command
method
Constants
- NO_OVERRIDE
For backward compatibility
- OVERRIDE_ALL
- OVERRIDE_PRIVATE_ONLY
Public Class Methods
def_extend_command(cmd_name, cmd_class, _, *aliases)
click to toggle source
Drepcated. Use Command.regiser instead.
# File irb/default_commands.rb, line 255 def self.def_extend_command(cmd_name, cmd_class, _, *aliases) Command._register_with_aliases(cmd_name, cmd_class, *aliases) Command.class_variable_set(:@@command_override_policies, nil) end
Public Instance Methods
irb_load(*opts, &b)
click to toggle source
Loads the given file similarly to Kernel#load, see IrbLoader#irb_load
# File irb/ext/use-loader.rb, line 19 def irb_load(*opts, &b) Command::Load.execute(irb_context, *opts, &b) end
irb_require(*opts, &b)
click to toggle source
Loads the given file similarly to Kernel#require
# File irb/ext/use-loader.rb, line 24 def irb_require(*opts, &b) Command::Require.execute(irb_context, *opts, &b) end