On 5/15/07, Robert Klemme <shortcutter / googlemail.com> wrote:
<snip>
> > frozen is frozen forever.
>
> Corrent.  And since #frozen? is defined in Kernel you can skip the first
> test.

No, you are an optimist Robert ;)

irb(main):003:0> Kernel.send :remove_method, :frozen?
=> Kernel
irb(main):004:0> "a".frozen?
NoMethodError: undefined method `frozen?' for "a":String
        from (irb):4
        from :0

But maybe we should not worry too much about that kind of meta-hackery
in our design, because one could trick as anyway, e.g.

class String; def frozen?; true end end

So you are right after all ;-)

Cheers
Robert