Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/sailpoint/helpers.rb

Overview

Used to override and give Number the blank? validation similar to Rails

Instance Method Summary collapse

Instance Method Details

#blank?true, false

Used to determine if the object is blank? || empty?

Note: If a object is declared a Numerica valye, it shouldn’t ever be blank

Returns:

  • (true, false)


48
49
50
# File 'lib/sailpoint/helpers.rb', line 48

def blank?
  false
end

#present?true, false

Used to determine if the object is not nil

Returns:

  • (true, false)


54
55
56
# File 'lib/sailpoint/helpers.rb', line 54

def present?
  !blank?
end