Class: Numeric

Inherits:
Object show all
Defined in:
lib/hotcocoa/core_extensions/numeric.rb

Overview

HotCocoa extensions for the Numeric class

Instance Method Summary collapse

Instance Method Details

#negative?Boolean

Deprecated.

This only exists for Range#to_NSRange, which has also been deprecated.

Whether or not a number is negative



9
10
11
# File 'lib/hotcocoa/core_extensions/numeric.rb', line 9

def negative?
  self < 0
end