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

Instance Method Details

#to_boolObject 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