Class: Numeric

Inherits:
Object show all
Defined in:
lib/errgonomic/core_ext/blank.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?false

No number is blank:

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

Returns:

  • (false)


177
178
179
# File 'lib/errgonomic/core_ext/blank.rb', line 177

def blank?
  false
end

#present?Boolean

Returns:

  • (Boolean)


181
182
183
# File 'lib/errgonomic/core_ext/blank.rb', line 181

def present?
  true
end