Class: FalseClass

Inherits:
Object show all
Defined in:
lib/kyanite/general/true_false.rb

Overview

TrueClass & FalseClass

Kyanite definitions

TrueClass FalseClass

Kyanite tests and examples

TestKyaniteTrueFalse

Usage

require ‘kyanite/general/true_false’

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object

Defines true <=> true, true <=> false, false <=> true, false <=> false. See Tests here.



65
66
67
68
# File 'lib/kyanite/general/true_false.rb', line 65

def <=>(other)
  return -1 if other
  return 0
end

#blank?self

Returns false

Returns:

  • (self)


73
# File 'lib/kyanite/general/true_false.rb', line 73

def blank?; self; end

#dupself

Returns self

Returns:

  • (self)


61
# File 'lib/kyanite/general/true_false.rb', line 61

def dup; self; end

#stripself

Returns self

Returns:

  • (self)


56
# File 'lib/kyanite/general/true_false.rb', line 56

def strip; self; end

#to_i0

Returns 0

Returns:

  • (0)


51
# File 'lib/kyanite/general/true_false.rb', line 51

def to_i; 0; end