On Sep 10, 2009, at 9:20 PM, Charles Oliver Nutter wrote:
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
I wanted to stub methods. Until fully fleshed out, I wanted to throw
NotImpmentedError with message "methodX is not implemented".
Hiro
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email