Hi,
In message "[ruby-talk:01847] Re: Minor irritation, can't figure out how to patch it though!"
on 00/03/15, Dave Thomas <Dave / thomases.com> writes:
|You could write it as a library module which you include:
|
| module British
| def initialize(*a)
| initialise(*a)
| end
| end
|
| class Fred
| include British
|
| def initialise(str)
| printf "Initializing #{str}\n"
| @str = str
| end
| end
|
| f = Fred.new("Hello")
Hmm, this one and the one in [ruby-talk:01846] are almost identical to
my responses respectively. I guess I've got my alterego in the states. ;-)
matz.