[ruby-core:69178] Re: [Ruby trunk - Feature #11151] Numeric#positive? and Numeric#negative?

From: Matthew Kerwin <matthew@...>
Date: 2015-05-13 22:14:48 UTC
List: ruby-core #69178
On 14/05/2015, rafaelmfranca@gmail.com <rafaelmfranca@gmail.com> wrote:
> Issue #11151 has been updated by Rafael Fran巽a.
>
>
> Right. Thank you for the explanation.
>
> So maybe just to `Fixnum` and `Float`?
>

You probably mean Integer and Float. And possibly also Rational.

That, or add it to Numeric and have it raise in Complex.

-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/

In This Thread

Prev Next