Class: Acfs::Resource::Attributes::String
- Defined in:
- lib/acfs/resource/attributes/string.rb
Overview
String attribute type. Use it in your model as an attribute type:
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#cast_value(value) ⇒ String
Cast given object to string.
Methods inherited from Base
#cast, #default_value, #initialize
Constructor Details
This class inherits a constructor from Acfs::Resource::Attributes::Base
Instance Method Details
#cast_value(value) ⇒ String
Cast given object to string.
22 23 24 |
# File 'lib/acfs/resource/attributes/string.rb', line 22 def cast_value(value) value.to_s end |