Sha256: 4a12c0f4c953dcd18344938b9b785d4b1e8e6df66e3ed4ac9542e7c9e7a34054
Contents?: true
Size: 594 Bytes
Versions: 254
Compression:
Stored size: 594 Bytes
Contents
package com.xruby.runtime.lang; import com.xruby.runtime.builtin.RubyArray; public abstract class RubyNoOrOneArgMethod extends RubyMethod { public RubyNoOrOneArgMethod() { super(-1, false, 0); } protected abstract RubyValue run(RubyValue receiver, RubyBlock block); protected abstract RubyValue run(RubyValue receiver, RubyValue arg, RubyBlock block); protected RubyValue run(RubyValue receiver, RubyArray args, RubyBlock block) { if (args == null || args.size() == 0) { return this.run(receiver, block); } else { return this.run(receiver, args.get(0), block); } } }
Version data entries
254 entries across 136 versions & 2 rubygems