Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.javasupport.binding;
 
Created by headius on 2/26/15.
    final Object singleton;
    public SingletonMethodInvokerInstaller(String nameObject singleton) {
        super(name);
        this. = singleton;
    }
    @Override void install(final RubyModule proxy) {
        // we don't check haveLocalMethod() here because it's not local and we know
        // that we always want to go ahead and install it
        final RubyClass singletonClass = proxy.getSingletonClass();
        DynamicMethod method = new SingletonMethodInvoker(this.singletonClass);
        singletonClass.addMethod(method);
        if (  != null && isPublic() ) {
            singletonClass.defineAliases();
            //aliases = null;
        }
    }
New to GrepCode? Check out our FAQ X