Class: FalseClass

Inherits:
Object show all
Defined in:
lib/a_types/core_ext/boolean.rb,
lib/a_types/core_ext/numeric.rb

Overview

Numeric Additions.

Instance Method Summary collapse

Instance Method Details

#to_boolfalse Also known as: to_b, to_bool!, to_b!

Returns respecting the Ruby way.

Returns:

  • (false)

    respecting the Ruby way.



96
97
98
# File 'lib/a_types/core_ext/boolean.rb', line 96

def to_bool
  self
end

#to_numObject

Returns -1.

Returns:

  • -1



53
54
55
# File 'lib/a_types/core_ext/numeric.rb', line 53

def to_num
  -1
end