Class: Attrocity::Coercers::String
- Inherits:
-
Object
- Object
- Attrocity::Coercers::String
- Defined in:
- lib/attrocity/coercers/string.rb
Instance Method Summary collapse
Instance Method Details
#coerce(value) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/attrocity/coercers/string.rb', line 4 def coerce(value) if value.nil? nil else String(value) end end |