Class: Opto::Types::Array

Opto::Type show all
Defined in:


An array


- split: an incoming string will be split using this pattern
- join: when outputting, join the array using this pattern into a string
- empty_is_nil: an empty array will be replaced with nil
- sort: when true, sorts the array before output
- uniq: when true, removes duplicates
- compact: when true, removes nils and blanks
- count: when true, the output is the count of items in the array

Constant Summary

Constants inherited from Opto::Type


Instance Attribute Summary

Attributes inherited from Opto::Type


Method Summary

Methods inherited from Opto::Type

#errors, for, inherited, #initialize, #required?, #sanitize, sanitizer, sanitizers, true_when, type, #type, types, #valid?, #validate, validator, validators

Constructor Details

This class inherits a constructor from Opto::Type