Class: FalseClass

Inherits:
Object
  • Object
show all
Includes:
Bool
Defined in:
lib/safebool.rb

Constant Summary

Constants included from Bool

Bool::FALSE_VALUES, Bool::TRUE_VALUES

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Bool

convert, parse, #parse_bool, #to_b

Class Method Details

.zeroObject

note: include Bool does NOT include module function (e.g. self.zero, etc.)

todo/check/discuss - also include self.parse - why? why not?


61
# File 'lib/safebool.rb', line 61

def self.zero() false; end

Instance Method Details

#to_iObject



57
# File 'lib/safebool.rb', line 57

def to_i()  0; end

#zero?Boolean

Returns:

  • (Boolean)


56
# File 'lib/safebool.rb', line 56

def zero?() true; end