Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/fat_date/patches.rb,
lib/fat_date/patches.rb

Overview

Patch Numeric

Instance Method Summary collapse

Instance Method Details

#negative?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/fat_date/patches.rb', line 16

def negative?
  self < 0
end

#positive?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/fat_date/patches.rb', line 7

def positive?
  self > 0
end