Examples of fastSetInternalVariable()


Examples of org.jruby.RubyClass.fastSetInternalVariable()

            }
        };

    public static RubyClass makeHpricotStruct(Ruby runtime, IRubyObject[] members) {
        RubyClass klass = RubyClass.newClass(runtime, runtime.getObject());
        klass.fastSetInternalVariable("__size__", runtime.newFixnum(members.length));
        klass.setAllocator(alloc_hpricot_struct);

        for(int i = 0; i < members.length; i++) {
            String id = members[i].toString();
            klass.defineMethod(id, ref_func[i]);
View Full Code Here

Examples of org.jruby.RubyModule.fastSetInternalVariable()

            return (Type) m.fastGetInternalVariable("native_type");

        } else if (args.length == 1) {
            Type type = Util.findType(context, args[0]);

            m.fastSetInternalVariable("native_type", type);

            return type;

        } else {
            throw context.getRuntime().newArgumentError("incorrect arguments");
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.