class Numeric

Ruby’s core Numeric class, the parent class of Integer, Fixnum, Bignum, Float, and Rational. See documentation for version 2.1.5, 2.0.0, or 1.9.3.

Public Instance Methods

blank?() click to toggle source

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
    # File lib/reactive_support/core_ext/object/blank.rb
205 def blank?
206   false 
207 end
present?() click to toggle source

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
    # File lib/reactive_support/core_ext/object/blank.rb
214 def present? 
215   true 
216 end