Class: Numeric

Inherits:
Object show all
Defined in:
lib/strokedb/core_ext/blank.rb,
lib/strokedb/core_ext/infinity.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/strokedb/core_ext/blank.rb', line 47

def blank?
  false
end

#infinite?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/strokedb/core_ext/infinity.rb', line 12

def infinite?
  self.abs == Infinity
end