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

Whether or not a number is negative

Returns:

  • (Boolean)


6
7
8
# File 'lib/hotcocoa/core_extensions/numeric.rb', line 6

def negative?
  self < 0
end