I
Iain Barnett
Hi all,
Being English and able to spell proper like, innit, I find I'm creating =
a lot of stupid errors by writing `def initialise` a lot. I had the =
bright idea of making an alias to stop this transatlantic turmoil, but =
I've no idea where to put it. Everything I've looked up boils down to =
"don't worry, initialize is sort of magic behind the scenes, just call =
new..."=20
I tried this:
class Object
alias :initialise :initialize
end
but it didn't work. Is this possible, or do I have to start writing like =
the lead singer from Radiohead sings?
Regards,
Iain=
Being English and able to spell proper like, innit, I find I'm creating =
a lot of stupid errors by writing `def initialise` a lot. I had the =
bright idea of making an alias to stop this transatlantic turmoil, but =
I've no idea where to put it. Everything I've looked up boils down to =
"don't worry, initialize is sort of magic behind the scenes, just call =
new..."=20
I tried this:
class Object
alias :initialise :initialize
end
but it didn't work. Is this possible, or do I have to start writing like =
the lead singer from Radiohead sings?
Regards,
Iain=