2009/9/9 Hirotsugu Asari <[email protected]>:
> From Java, given:
>
> �...@jrubymethod(name = "methodX", module = true, visibility =
> Visibility.PRIVATE, compat = CompatVersion.RUBY1_9)
> public static IRubyObject setOutput(ThreadContext context, IRubyObject
> recv, IRubyObject output) {
> // code goes here
> return rev.getRuntime().getNil();
> }
>
> How can I get the name of Ruby method without hardcoding it?
I was actually thinking about adding the ability to add a String
parameter for the name the method was actually called under today. May
I ask what you need it for? In my case I was just trying to debug
something.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email