class Mingle::MingleBoolean

Constants

FALSE
TRUE

Public Class Methods

for_boolean( b ) click to toggle source
# File lib/mingle.rb, line 128
def self.for_boolean( b )
    b ? TRUE : FALSE
end
new( b ) click to toggle source
# File lib/mingle.rb, line 94
def initialize( b )
    @b = b
end

Public Instance Methods

==( other ) click to toggle source
# File lib/mingle.rb, line 118
def ==( other )
    other.is_a?( MingleBoolean ) && @b == other.as_boolean
end
Also aliased as: eql?
as_boolean() click to toggle source
# File lib/mingle.rb, line 109
def as_boolean
    @b
end
Also aliased as: to_b, to_bool, to_boolean
eql?( other )
Alias for: ==
inspect() click to toggle source
# File lib/mingle.rb, line 104
def inspect
    to_s.inspect
end
to_b()
Alias for: as_boolean
to_bool()
Alias for: as_boolean
to_boolean()
Alias for: as_boolean
to_s() click to toggle source
# File lib/mingle.rb, line 99
def to_s
    @b.to_s
end