All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.javasupport.binding.InstanceMethodInvokerInstaller Maven / Gradle / Ivy

There is a newer version: 0.40.13
Show newest version
package org.jruby.javasupport.binding;

import org.jruby.RubyModule;
import org.jruby.java.invokers.InstanceMethodInvoker;

/**
* Created by headius on 2/26/15.
*/
public class InstanceMethodInvokerInstaller extends MethodInstaller {

    public InstanceMethodInvokerInstaller(String name) { super(name, INSTANCE_METHOD); }

    @Override void install(final RubyModule proxy) {
        if ( hasLocalMethod() ) {
            proxy.addMethod(name, new InstanceMethodInvoker(proxy, methods));
            if ( aliases != null && isPublic() ) {
                proxy.defineAliases(aliases, this.name);
                //aliases = null;
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy