Package org.jruby.compiler.ir.instructions

Examples of org.jruby.compiler.ir.instructions.DefineInstanceMethodInstr


    public Operand buildDefn(MethodDefNode node, IRScope s) { // Instance method
        Operand container = MetaObject.create(s.getNearestModule());
        IRMethod method = defineNewMethod(node, s, container, true);
        s.getNearestModule().addMethod(method);
        s.addInstr(new DefineInstanceMethodInstr(container, method));
        return Nil.NIL;
    }
View Full Code Here

TOP

Related Classes of org.jruby.compiler.ir.instructions.DefineInstanceMethodInstr

Copyright © 2018 www.massapicom. 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.