class FalseClass

Public Instance Methods

to_b() click to toggle source

Returns false if invoked on FalseClass instance.

Examples

false.to_b #=> false
# File core_extensions/false_class.rb, line 18
def to_b
  false
end
to_i() click to toggle source

Returns 0 if invoked on FalseClass instance.

Examples

false.to_i #=> 0
# File core_extensions/false_class.rb, line 9
def to_i
  0
end