Module: Boolean
- Defined in:
- lib/certainty.rb,
lib/certainty.rb
Overview
Certainty
Sneaks Boolean, an object that represents truth, into Ruby.
Instance Method Summary collapse
-
#to_bool ⇒ Object
(also: #to_b)
Returns the receiver.
Instance Method Details
#to_bool ⇒ Object Also known as: to_b
Returns the receiver. The truth of a boolean object is self-referential.
21 22 23 |
# File 'lib/certainty.rb', line 21 def to_bool self end |