Class: TrueClass

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.)



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

def self.zero() false; end

Instance Method Details

#to_iObject



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

def to_i()  1; end

#zero?Boolean

Returns:

  • (Boolean)


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

def zero?() false; end