class ContainerConfig::Coercer::Symbol
Symbol
type coercer
Public Instance Methods
coerce(value)
click to toggle source
Coerces the given value into a symbol
@param [Object] value given value
@return [Symbol] coerced value
# File lib/container_config/coercer/symbol.rb, line 26 def coerce(value) return if value.nil? value.to_s.to_sym end
name()
click to toggle source
@see ContainerConfig::Coercer::Base#name
# File lib/container_config/coercer/symbol.rb, line 10 def name "Symbol" end
type()
click to toggle source
@see ContainerConfig::Coercer::Base#type
# File lib/container_config/coercer/symbol.rb, line 15 def type :symbol end