[ruby-talk:02455] Re: String#tr

From: Andrew Hunt <andy@...>
Date: 2000-04-11 20:28:09 UTC
List: ruby-talk #2455
	>Keyword args are nice and all, but what I meant was:
	>
	>String#tr(search, replace, String.SQUEEZE | String.COMPLEMENT)
	>
	>A bit C-ish, but not so hard on the eyes even so.

Sorry, I have to disagree --- that is *very* C-ish, and I find
it both quite hard on the eyes and not very OO.

Surely there's a cleaner way of specifying multiple options?

/\ndy

In This Thread

Prev Next