def_extend_command(cmd_name, load_file, *aliases) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/irb/extend-command.rb, line 213
    def self.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        for ali in aliases          alias_method ali, cmd_name        end, __FILE__, __LINE__+1
    end
Register or log in to add new notes.