I want to overwrite some method when I instantiate a Java Object using ruby
when I use Java,the implement like this
Class name = new Class() {
@overwrite
public String method() {
}
}
but I don't know how to implement like this in jruby when I use ruby to instantiate the instance.