#(脚本0) def b puts("A.b0") end alias default_b b #(脚本2) def b default_b # 这个是为b0准备的 old_b # 这个是为b1以及基于b1修改的各种脚本准备的 puts("A.b2") end