Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/buildpack_support/to_b.rb

Overview

A mixin that adds the ability to turn a nil into a boolean

Instance Method Summary collapse

Instance Method Details

#to_bBoolean

Converts a nil to a boolean

Returns:

  • (Boolean)

    false always



34
35
36
# File 'lib/buildpack_support/to_b.rb', line 34

def to_b
  false
end