Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/object.rb
Class Method Summary collapse
-
.to_bool ⇒ Object
Class Methods ========================================================.
Instance Method Summary collapse
-
#to_bool(strict: false) ⇒ Object
Instance Methods =====================================================.
Class Method Details
.to_bool ⇒ Object
Class Methods ========================================================
13 14 15 |
# File 'lib/object.rb', line 13 def self.to_bool(...) true end |
Instance Method Details
#to_bool(strict: false) ⇒ Object
Instance Methods =====================================================
20 21 22 |
# File 'lib/object.rb', line 20 def to_bool(strict: false) CoerceBoolean.from(self, strict: strict) end |