Class: FalseClass
Overview
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.
Instance Method Summary collapse
-
#&(obj2) ⇒ Object
Returns
false:. - #=== ⇒ Object
- #^ ⇒ Object
-
#to_s ⇒ Object
(also: #inspect)
The string representation of
falseis "false". - #| ⇒ Object
Instance Method Details
#&(object) ⇒ false #&(object) ⇒ false
Returns false:
false & true # => false
false & Object.new # => false
Argument object is evaluated:
false & raise # Raises RuntimeError.
1562 1563 1564 1565 1566 |
# File 'object.c', line 1562 static VALUE false_and(VALUE obj, VALUE obj2) { return Qfalse; } |
#=== ⇒ Object
#^ ⇒ Object
#to_s ⇒ Object Also known as: inspect
The string representation of false is "false".
1541 1542 1543 1544 1545 |
# File 'object.c', line 1541 VALUE rb_false_to_s(VALUE obj) { return rb_cFalseClass_to_s; } |