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?

Note: I know this is messing with internals here, but I need the
result from this method to get at the AST of a Proc to make JParseTree
work with
 http://errtheblog.com/post/10722
Ambition is a a fun use of ParseTree... except that the developer
managed to find the one weakness of JParseTree (ie. getting ASTs for
dynamically defined methods).

murphee

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to