From: Paul Mckibbin Date: 2008-03-11T19:39:01+09:00 Subject: Re: Which is better -- method option or multiple methods? Avdi Grimm wrote: > On Mon, Mar 10, 2008 at 3:09 PM, Paul Mckibbin > wrote: >> Method options are better if you ever want to extend it. I personally >> would have both in library code, but would be inclined to keep the >> multiple method code private to keep the interface clean. > > I would do just the opposite, for the same reason. #align_left > makes it completely obvious what the method will do on the first > glance. #align() forces me to look up the valid arguments. You need to read the later post, or look at the code. We're actually agreeing that having separate methods are better than a single method. Mac -- Posted via http://www.ruby-forum.com/.