Class: Type::ArrayOfStringsType
- Inherits:
-
ActiveModel::Type::Value
- Object
- ActiveModel::Type::Value
- Type::ArrayOfStringsType
- Defined in:
- lib/kb/type/array_of_strings_type.rb
Instance Method Summary collapse
Instance Method Details
#cast(values) ⇒ Object
3 4 5 6 7 |
# File 'lib/kb/type/array_of_strings_type.rb', line 3 def cast(values) return [] if values.blank? values.map(&:to_s) end |