Class: Numeric
Overview
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Numbers can never be blank; when called on any
Numeric(includingFixnum,Bignum,Float,Integer, andRational), the#blank?method will returnfalse: 10.blank? # => false. -
#present? ⇒ Boolean
Numbers are always present; when called on any
Numeric(includingFixnum,Bignum,Float,Integer, andRational), the#present?method will returntrue: Math.PI.present? # => true.
Instance Method Details
#blank? ⇒ Boolean
Numbers can never be blank; when called on any Numeric (including Fixnum, Bignum, Float, Integer, and Rational), the #blank? method will return false:
10.blank? # => false
200 201 202 |
# File 'lib/reactive_support/core_ext/object/blank.rb', line 200 def blank? false end |
#present? ⇒ Boolean
Numbers are always present; when called on any Numeric (including Fixnum, Bignum, Float, Integer, and Rational), the #present? method will return true:
Math.PI.present? # => true
209 210 211 |
# File 'lib/reactive_support/core_ext/object/blank.rb', line 209 def present? true end |