method
def_pre_proc
v1_9_1_378 -
Show latest stable
- Class:
IRB::MethodExtender
def_pre_proc(base_method, extend_method)public
No documentation available.
# File lib/irb/extend-command.rb, line 230
def def_pre_proc(base_method, extend_method)
base_method = base_method.to_s
extend_method = extend_method.to_s
alias_name = new_alias_name(base_method)
module_eval alias_method alias_name, base_method def #{base_method}(*opts) send :#{extend_method}, *opts send :#{alias_name}, *opts end, __FILE__, __LINE__+1
end