Hi --

On Sun, 27 Feb 2005, Sam Roberts wrote:

> I want to allow method calls during initialization, but not after:
>
>  class Foo
>   attr_writer :opt
>   def initialize
>     yield self
>
>     # doesn't work
>     remove_method 'opt='
>
>     # doesn't work
>     class < self
>       remove_method 'opt='
>     end

Try:

    class << self
      undef_method 'opt='
    end


David

-- 
David A. Black
dblack / wobblini.net