Module: Boolean::CoreExtension

Extended by:
T::Sig
Defined in:
lib/booleans/core_extension.rb

Overview

Contains additional methods that are added by the ‘booleans` gem to `Object`.

Instance Method Summary collapse

Instance Method Details

#to_boolObject



18
19
20
21
22
# File 'lib/booleans/core_extension.rb', line 18

def to_bool
  return true if self

  false
end