Werner Schuster (murphee) wrote:
Howdy,
I need to call the "getMethod" method on org.jruby.runtime.Block.
Problem: "getMethod" gets ruby-fied to "method" which, as it happens,
clashes with Ruby's "method" method.
Calling "getMethod" fails with:
NoMethodError: undefined method `getMethod' for
#<Java::OrgJrubyRuntime::Block:0x1f0b7d3>
I've tried things like:
send(:getMethod)
__jsend!
__send__
but no luck.
Any idea how I could get this to work?
getMethod/method may be a good candidate for addition to the "don't make
shortcut/rubified names" category, like we have for getClass and
friends. I don't think most people would complain if getMethod didn't
rubify, since it's rather necessary for some Ruby classes and scripts to
work properly.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email