Boolean
Description
BooleanObject represents boolean object in goby.
It includes true
and FALSE
which represents logically true and false value.
Class Methods
Instance Methods
#
==
( source )
#
!=
Returns true if the receiver is not equals to the argument.
( source )
#
!
Reverse the receiver.
!true # => false
!false # => true
( source )
#
&&
Returns true if both the receiver and the argument are true.
3 > 2 && 5 > 3 # => true
3 > 2 && 5 > 10 # => false
( source )
#
||
Returns true either if the receiver or argument is true.
3 > 2 || 5 > 3 # => true
3 > 2 || 5 > 10 # => true
2 > 3 || 5 > 10 # => false
( source )
Returns true if the receiver equals to the argument.