Example #1
0
  @JRubyMethod(name = ">", required = 1)
  public IRubyObject op_gt(ThreadContext context, IRubyObject other) {
    if (other instanceof RubyTime) {
      return getRuntime().newBoolean(cmp((RubyTime) other) > 0);
    }

    return RubyComparable.op_gt(context, this, other);
  }