overider 0.1
class A def hello "hello" end end # Later, I want to overide class A methods class A extend Overider overide (:hello) do |*a| overiden(*a) + " overide" end end A.new.hello # ==> "hello overide"
class A def hello "hello" end end # Later, I want to overide class A methods class A extend Overider overide (:hello) do |*a| overiden(*a) + " overide" end end A.new.hello # ==> "hello overide"