Class: Contentful::StringCoercion
- Inherits:
-
BaseCoercion
- Object
- BaseCoercion
- Contentful::StringCoercion
- Defined in:
- lib/contentful/coercions.rb
Overview
Coercion for String Types
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseCoercion
Instance Method Summary collapse
-
#coerce ⇒ Object
Coerces value to String.
Methods inherited from BaseCoercion
Constructor Details
This class inherits a constructor from Contentful::BaseCoercion
Instance Method Details
#coerce ⇒ Object
Coerces value to String
22 23 24 |
# File 'lib/contentful/coercions.rb', line 22 def coerce(*) value.to_s end |