Class: Numeric

Inherits:
Object show all
Defined in:
lib/extlib/blank.rb,
lib/extlib/numeric.rb,
lib/extlib/try_dup.rb

Overview

class Object

Instance Method Summary collapse

Instance Method Details

#blank?FalseClass

Numerics are never blank

0.blank?          #=>  false
1.blank?          #=>  false
6.54321.blank?    #=>  false

28
29
30
# File 'lib/extlib/blank.rb', line 28

def blank?
  false
end

#try_dupObject


2
3
4
# File 'lib/extlib/numeric.rb', line 2

def try_dup
  self
end