Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/delicious-cli/blank.rb

Overview

Gives all the Ruby base types (String, Hash, nil, etc.) a “blank?” method.

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

‘true’ if the float is 0.0

Returns:

  • (Boolean)


9
# File 'lib/delicious-cli/blank.rb', line 9

def blank?; self == 0.0; end