That's a possibility.

def method_missing(sym, *args)
  camel = to_camel(sym)
  super unless respond_to?(camel)
  send(camel, *args)
end

On 3/30/06, Nick Sieger <[EMAIL PROTECTED]> wrote:
On 3/30/06, Charles O Nutter <[EMAIL PROTECTED] > wrote:

I personally think the ruby_case makes Java integrated code look a lot nicer, but I am bothered by the namespace pollution and by having two of so many methods.

A new thought (to me), don't know if this has been mentioned before -- could you add some special logic in a method_missing method somewhere along the method resolution chain that does this lazily, so the methods don't appear there at all?

/Nick



--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Reply via email to