Module: IRB::ExtendCommandBundle
- Defined in:
- lib/irb/default_commands.rb,
lib/irb/ext/use-loader.rb
Overview
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
Constant Summary collapse
- NO_OVERRIDE =
For backward compatibility
Command::NO_OVERRIDE
- OVERRIDE_PRIVATE_ONLY =
Command::OVERRIDE_PRIVATE_ONLY
- OVERRIDE_ALL =
Command::OVERRIDE_ALL
Class Method Summary collapse
Instance Method Summary collapse
-
#irb_load(*opts, &b) ⇒ Object
Loads the given file similarly to Kernel#load, see IrbLoader#irb_load.
-
#irb_require(*opts, &b) ⇒ Object
Loads the given file similarly to Kernel#require.
Class Method Details
.def_extend_command(cmd_name, cmd_class, _, *aliases) ⇒ Object
Drepcated. Use Command.regiser instead.
270 271 272 273 |
# File 'lib/irb/default_commands.rb', line 270 def 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 |