Instance Methods
    
  
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            static VALUE
true_and(VALUE obj, VALUE obj2)
{
    return RBOOL(RTEST(obj2));
}
          
        
      Returns false if object is false or nil, true otherwise:
true & Object.new # => true true & false      # => false true & nil        # => false
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            #define case_equal rb_equal
          
        
      
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            static VALUE
true_xor(VALUE obj, VALUE obj2)
{
    return rb_obj_not(obj2);
}
          
        
      Returns true if object is false or nil, false otherwise:
true ^ Object.new # => false true ^ false # => true true ^ nil # => true
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            VALUE
rb_true_to_s(VALUE obj)
{
    return rb_cTrueClass_to_s;
}
          
        
      
          
            3.3
          
          
            View on GitHub
            
          
        
        
          
            static VALUE
true_or(VALUE obj, VALUE obj2)
{
    return Qtrue;
}
          
        
      Returns true:
true | Object.new # => true true | false # => true true | nil # => true
Argument object is evaluated. This is different from true with the short-circuit operator, whose operand is evaluated only if necessary:
true | raise # => Raises RuntimeError. true || raise # => true