From: Rassat Nicolas Date: 2007-10-01T04:50:37+09:00 Subject: canonical Array#append to hang hook I have a class which inherit from Array. I want to perform some task each time something is append to an instance of this class. The problem is: there are so many way to append something to an array. For example: class Narray < Array alias_method :old_push, :push def push(*obj) p "pushing #{obj}" old_push(*obj) end alias_method :old_append, :<< def <<(obj) p "<