Class: Numeric

Inherits:
Object show all
Defined in:
lib/wedge/utilis/blank.rb,
lib/wedge/utilis/duplicable.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?false

No number is blank:

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

Returns:

  • (false)


130
131
132
# File 'lib/wedge/utilis/blank.rb', line 130

def blank?
  false
end

#duplicable?Boolean

Numbers are not duplicable:

3.duplicable? # => false
3.dup         # => TypeError: can't dup Fixnum

Returns:

  • (Boolean)


83
84
85
# File 'lib/wedge/utilis/duplicable.rb', line 83

def duplicable?
  false
end