Examples of undef()


Examples of org.jruby.RubyModule.undef()

  
        if (module == null) {
            throw runtime.newTypeError("No class to undef method '" + name + "'.");
        }
       
        module.undef(context, name);
  
        return runtime.getNil();       
    }
}
View Full Code Here

Examples of org.jruby.RubyModule.undef()

        if (module == null) {
            throw context.getRuntime().newTypeError("No class to undef method '" + name + "'.");
        }

        module.undef(context, name);

        return context.getRuntime().getNil();
    }
   
    public static IRubyObject defineAlias(ThreadContext context, IRubyObject self, Object newNameArg, Object oldNameArg) {
View Full Code Here

Examples of org.jruby.RubyModule.undef()

  
        if (module == null) {
            throw runtime.newTypeError("No class to undef method '" + undefName + "'.");
        }
       
        module.undef(context, undefName);
  
        return runtime.getNil();       
    }
}
View Full Code Here

Examples of org.jruby.RubyModule.undef()

    @Override
    public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) {
        RubyModule module = IRRuntimeHelpers.findInstanceMethodContainer(context, currDynScope, self);
        Object nameArg = methodName.retrieve(context, self, currScope, currDynScope, temp);
        String name = (nameArg instanceof String) ? (String) nameArg : nameArg.toString();
        module.undef(context, name);
        return context.runtime.getNil();
    }

    @Override
    public void visit(IRVisitor visitor) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.