Class: FalseClass

Inherits:
Object show all
Defined in:
lib/hash-utils/boolean.rb

Overview

FalseClass extension.

Since:

  • 0.17.0

Instance Method Summary collapse

Instance Method Details

#boolean?Boolean

Returns:

  • (Boolean)

Since:

  • 0.17.0



99
100
101
# File 'lib/hash-utils/boolean.rb', line 99

def boolean?
    true
end

#convert(t, f) ⇒ Object

Since:

  • 0.17.0



140
141
142
# File 'lib/hash-utils/boolean.rb', line 140

def convert(t, f)
    f
end

#false?Boolean

Returns:

  • (Boolean)

Since:

  • 0.17.0



112
113
114
# File 'lib/hash-utils/boolean.rb', line 112

def false?
    true
end

#to_i(t = 1, f = 0) ⇒ Object

Since:

  • 0.17.0



155
156
157
# File 'lib/hash-utils/boolean.rb', line 155

def to_i(t = 1, f = 0) 
    self.convert(t, f)
end

#true?Boolean

Returns:

  • (Boolean)

Since:

  • 0.17.0



125
126
127
# File 'lib/hash-utils/boolean.rb', line 125

def true?
    false
end