From: dblack@... Date: 2007-03-01T20:53:48+09:00 Subject: Re: object_* and instance_* methods Hi -- On Thu, 1 Mar 2007, Daniel DeLorme wrote: > dblack@wobblini.net wrote: >> Why object_method? > > 1. consistence: it's a meta-programming method They're all just methods, though. I'm uneasy with assigning clusters of methods to super-categories. I think the results are better in the end if choices are made at a more granular level: find the best name for exactly what a given method is purporting to do. Clustering is itself a "meta"-thing. > 2. avoid collisions: e.g. ActionController::CgiRequest#method I was thinking that collisions were less likely with #method, but I guess they're still fairly likely. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)