Class: Contentful::BooleanCoercion
- Inherits:
-
BaseCoercion
- Object
- BaseCoercion
- Contentful::BooleanCoercion
- Defined in:
- lib/contentful/coercions.rb
Overview
Coercion for Boolean Types
Instance Attribute Summary
Attributes inherited from BaseCoercion
Instance Method Summary collapse
-
#coerce ⇒ Object
Coerces value to Boolean.
Methods inherited from BaseCoercion
Constructor Details
This class inherits a constructor from Contentful::BaseCoercion
Instance Method Details
#coerce ⇒ Object
Coerces value to Boolean
52 53 54 55 56 |
# File 'lib/contentful/coercions.rb', line 52 def coerce(*) # rubocop:disable Style/DoubleNegation !!value # rubocop:enable Style/DoubleNegation end |