Class: Numeric

Inherits:
Object
  • Object
show all
Extended by:
FatCore::Numeric::ClassMethods
Includes:
FatCore::Numeric
Defined in:
lib/fat_core/patches.rb,
lib/fat_core/numeric.rb,
lib/fat_core/patches.rb

Overview

Patch Numeric

Instance Method Summary collapse

Methods included from FatCore::Numeric

#commas, #group, #int_if_whole, #secs_to_hms, #signum, #tex_quote, #whole?

Instance Method Details

#negative?Boolean

Returns:

  • (Boolean)


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

def negative?
  self < 0
end

#positive?Boolean

Returns:

  • (Boolean)


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

def positive?
  self > 0
end