环绕别名
class XXX def my_method puts "this is original_method" end alias_method :original_my_method, :my_method def my_method puts "rewrite original_method" endendx = XXX.newx.my_method #=》 rewrite original_methodx.origianl_my_method #=》 this is original_method
?