A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.ruby-lang.org/en/3.4/FalseClass.html below:

class FalseClass - Documentation for Ruby 3.4

class FalseClass

The global value false is the only instance of class FalseClass and represents a logically false value in boolean expressions. The class provides operators allowing false to participate correctly in logical expressions.

Public Instance Methods

Source

static VALUE
false_and(VALUE obj, VALUE obj2)
{
    return Qfalse;
}

Returns false:

false & true       
false & Object.new 

Argument object is evaluated:

false & raise 

Source

#define case_equal rb_equal

Returns true or false.

Like Object#==, if object is an instance of Object (and not an instance of one of its many subclasses).

This method is commonly overridden by those subclasses, to provide meaningful semantics in case statements.

Source

#define false_xor true_and

Returns false if object is nil or false, true otherwise:

nil ^ nil        
nil ^ false      
nil ^ Object.new 

Source

#define false_or true_and

Returns false if object is nil or false, true otherwise:

nil | nil        
nil | false      
nil | Object.new 

Source

VALUE
rb_false_to_s(VALUE obj)
{
    return rb_cFalseClass_to_s;
}

The string representation of false is “false”.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4