Examples of aset()


Examples of org.jruby.RubyArray.aset()

            if(oo instanceof LinkNode) {
                arr.append(runtime.getNil());
                final IRubyObject ix = runtime.newFixnum(i);
                addFixer((Node)(((LinkNode)oo).getValue()), new RecursiveFixer() {
                        public void replace(Node node, Object real) {
                            arr.aset(ix, (IRubyObject)real);
                        }
                    });
            } else {
                arr.append((IRubyObject)oo);
            }
View Full Code Here

Examples of org.jruby.RubyArray.aset()

    @Override
    public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) {
        Ruby runtime = context.getRuntime();
        if (self.getMetaClass() == runtime.getArray()) {
            RubyArray array = (RubyArray)self;
            return array.aset(arg0, arg1);
        }
        return super.call(context, caller, self, arg0, arg1);
    }
}
View Full Code Here

Examples of org.jruby.RubyArray.aset()

    @Override
    public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg0, IRubyObject arg1) {
        Ruby runtime = context.runtime;
        if (self.getMetaClass() == runtime.getArray()) {
            RubyArray array = (RubyArray)self;
            return array.aset(arg0, arg1);
        }
        return super.call(context, caller, self, arg0, arg1);
    }
}
View Full Code Here

Examples of org.jruby.RubyHash.aset()

            }

            while(rs.next()) {
                RubyHash row = RubyHash.newHash(runtime);
                for(int i=0;i<col_count;i++) {
                    row.aset(col_names[i], jdbc_to_ruby(runtime, i+1, col_types[i], col_scale[i], rs));
                }
                results.add(row);
            }
        } finally {
            try {
View Full Code Here

Examples of org.jruby.RubyHash.aset()

            }

            while(rs.next()) {
                RubyHash row = RubyHash.newHash(runtime);
                for(int i=0;i<col_count;i++) {
                    row.aset(col_names[i], jdbc_to_ruby(runtime, i+1, col_types[i], col_scale[i], rs));
                }
                results.add(row);
            }
        } finally {
            try {
View Full Code Here

Examples of org.jruby.RubyHash.aset()

            if(row_filter.isGiven()) {
                while(rs.next()) {
                    if(row_filter.yield(runtime.getCurrentContext(),resultset).isTrue()) {
                        RubyHash row = RubyHash.newHash(runtime);
                        for(int i=0;i<col_count;i++) {
                            row.aset(col_names[i], jdbc_to_ruby(runtime, i+1, col_types[i], col_scale[i], rs));
                        }
                        results.add(row);
                    }
                }
            } else {
View Full Code Here

Examples of org.jruby.RubyHash.aset()

                }
            } else {
                while(rs.next()) {
                    RubyHash row = RubyHash.newHash(runtime);
                    for(int i=0;i<col_count;i++) {
                        row.aset(col_names[i], jdbc_to_ruby(runtime, i+1, col_types[i], col_scale[i], rs));
                    }
                    results.add(row);
                }
            }
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.