class ContainerConfig::Coercer::String

String type coercer

Public Instance Methods

coerce(value) click to toggle source

Coerces the given value into a string

@param [Object] value given value

@return [String] coerced value

# File lib/container_config/coercer/string.rb, line 26
def coerce(value)
  value.to_s
end
name() click to toggle source

@see ContainerConfig::Coercer::Base#name

# File lib/container_config/coercer/string.rb, line 10
def name
  "String"
end
type() click to toggle source

@see ContainerConfig::Coercer::Base#type

# File lib/container_config/coercer/string.rb, line 15
def type
  :string
end