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
inspect()
click to toggle source
# File lib/mingle.rb, line 104 def inspect to_s.inspect end
to_s()
click to toggle source
# File lib/mingle.rb, line 99 def to_s @b.to_s end