Ara.T.Howard wrote:
>
> any idea if this behaviour is intended or not?
>
>
> mussel:~/eg/ruby/nrtlib/nrtlib-0.0.0 > cat a.rb
> #
> # the problem
> #
> module NRT
> class Subscription
> def process_incoming
> raise NotImplementedError
> end
> alias_method "run", "process_incoming"
Unfortunately (?) what this^^^ does is define run to be a copy of the
method process_incoming, rather than define run as a method that
delegates to process_incoming.
I suppose this behavior is necessary if you want to use alias_method to
wrap an old method, regardless of what gets redefined in child classes.
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407