For those of us not in attendance to the meeting:
Is this useful, or purely experimental Ruby?
*Mars
On Nov 19, 2008, at 22:46, Jim Freeze wrote:
> For those that attended the meeting, here is my code where
> I introduce a singleton class in a singleton class.
>
> class C
>
> class << self
> class << self
> def foo
> "foo"
> end
> end
>
> def fred
> "fred"
> end
>
> def single
> class << self
> self
> end
> end
> end
> end
>
> p C.fred
> p C.single.foo
>
> b = C.clone
> p b.fred
> p b.single.foo # undefined method foo
>
>
>
> --
> Jim Freeze
( <> .. <> )