diff options
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r-- | lib/irb/extend-command.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index 491aa027ca..8e9b01673c 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -203,6 +203,7 @@ module IRB def CE.def_extend_command(cmd_name, load_file, *aliases) Context.module_eval %[ def #{cmd_name}(*opts, &b) + Context.module_eval {remove_method(:#{cmd_name})} require "#{load_file}" send :#{cmd_name}, *opts, &b end |