Class: Attribeauty::Types::String
- Inherits:
-
Object
- Object
- Attribeauty::Types::String
- Defined in:
- lib/attribeauty/types/string.rb
Overview
custom string type
Instance Method Summary collapse
Instance Method Details
#cast(value) ⇒ Object
7 8 9 10 11 |
# File 'lib/attribeauty/types/string.rb', line 7 def cast(value) return if value.nil? String(value) end |