Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/sailpoint/helpers.rb
Overview
Used to override and give Number the blank? validation similar to Rails
Instance Method Summary collapse
-
#blank? ⇒ true, false
Used to determine if the object is blank? || empty?.
-
#present? ⇒ true, false
Used to determine if the object is not nil.
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
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
54 55 56 |
# File 'lib/sailpoint/helpers.rb', line 54 def present? !blank? end |