From: Brian Adkins Date: 2008-11-18T06:11:39+09:00 Subject: Re: How can I overload a method in Ruby James Coglan writes: > [Note: parts of this message were removed to make it a legal post.] > > 2008/11/17 Brian Adkins > >> pjb@informatimago.com (Pascal J. Bourguignon) writes: >> > Call it: buildWithDirectory(directory) >> >> build_with_directory would probably be a more conventional Ruby function >> name. > > > In this case, this would be more Ruby-idiomatic: > > def build(directory = nil) > cd directory if directory > make > end Yes, Pascal already provided a version with default arg values in the parent. -- Brian Adkins http://www.lojic.com/ http://lojic.com/blog/