Hello --

Is there more compact way to alias class methods than this
(i.e., without the necessity of "class << self ... end")?

   class AliasTest

     def AliasTest.amethod
       puts "Class method amethod"
     end

     class << self
       alias bmethod amethod

       def amethod
         puts "Redefined class method, calling alias:"
         bmethod
       end

     end

   end

In trying to do a one-line version I never got much beyond learning
that these:

      alias bmethod AliasTest.amethod
      alias :bmethod :AliasTest.amethod

don't work.

In a related vein: what functionality does alias_method add to alias?
I've been playing with both, and in cases where either works, both
seem to work (even if with slightly different syntax).

Thanks for any feedback/input --


David


-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav