Yes.
It is often used to store the descriptor of existing methods before overriding them. (far-fetched example)
, :
class Foo
def do_something
puts "something"
end
end
, :
class Foo
def do_something_with_logging
puts "started doing something"
do_something_without_logging
puts "stopped doing something"
end
alias_method :do_something_without_logging, :do_something
alias_method :do_something, :do_something_with_logging
end
( alias_method_chain)
.
, alias_method - , ( - alias_method_chain)