Class: TrueClass
Overview
Instance Method Summary
- 
    
      #&(object)  ⇒ Boolean 
    
    Returns falseifobjectisfalseornil,trueotherwise:
- #===
- 
    
      #^(object)  ⇒ !object 
    
    Returns trueifobjectisfalseornil,falseotherwise:
- 
    
      #inspect  ⇒ 'true' 
    
    Alias for #to_s. 
- 
    
      #to_s  ⇒ 'true' 
      (also: #inspect)
    
    Returns string 'true':
- 
    
      #|(object)  ⇒ true 
    
    Returns true:
Instance Method Details
    #&(object)  ⇒ Boolean   
Returns false if object is false or nil, true otherwise:
true & Object.new # => true true & false      # => false true & nil        # => false
# File 'object.c', line 1512
static VALUE
true_and(VALUE obj, VALUE obj2)
{
    return RBOOL(RTEST(obj2));
}
  #===
[ GitHub ]
    #^(object)  ⇒ !object   
# File 'object.c', line 1556
static VALUE
true_xor(VALUE obj, VALUE obj2)
{
    return rb_obj_not(obj2);
}
  
    
      #to_s  ⇒ 'true' 
      #inspect  ⇒ 'true' 
    
  
true' 
      #inspect  ⇒ 'true' 
    Alias for #to_s.
    #to_s  ⇒ 'true'     Also known as: #inspect
  
# File 'object.c', line 1493
VALUE
rb_true_to_s(VALUE obj)
{
    return rb_cTrueClass_to_s;
}
  
    #|(object)  ⇒ true   
# File 'object.c', line 1537
static VALUE
true_or(VALUE obj, VALUE obj2)
{
    return Qtrue;
}