-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David A. Black wrote: | Not by everyone :-) I know I'm in the minority, but I'll put in a word | for those of us who dislike and, at least in my case, do not (and | never will) use the term "monkeypatching". Ruby and monkepatching produces results on Google. :P While I have no problems with working against the Establishment, I don't feel subversive enough to confuse a relative nuby. ;) |> Extend String with your method. | | Do you mean extending an individual string? That's probably my | favorite way of adding functionality to core-class objects. That's one option. Or inheriting from String into MyString, and work from there, if it is supposed to be 'globally' available. Depends on the implementation details, really. - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com ~ - You know you've been hacking too long when... ...after days with YACC, you start to parse your conversations. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkghu8gACgkQbtAgaoJTgL+LMwCgm5qTURv6FDJJ6imtOkzLNZZI DM8An3EEip66ZBzeds8OPZXioaZTnGbe =XwAC -----END PGP SIGNATURE-----