Class: ContainerConfig::Coercer::String
- Defined in:
- lib/container_config/coercer/string.rb
Overview
String type coercer
Instance Method Summary collapse
-
#coerce(value) ⇒ String
Coerces the given value into a string.
- #name ⇒ Object
- #type ⇒ Object
Instance Method Details
#coerce(value) ⇒ String
Coerces the given value into a string
26 27 28 |
# File 'lib/container_config/coercer/string.rb', line 26 def coerce(value) value.to_s end |
#name ⇒ Object
10 11 12 |
# File 'lib/container_config/coercer/string.rb', line 10 def name "String" end |
#type ⇒ Object
15 16 17 |
# File 'lib/container_config/coercer/string.rb', line 15 def type :string end |