Class: Opto::Types::Array

Inherits:
Opto::Type show all
Defined in:
lib/opto/types/array.rb

Overview

An array

Options:

- 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

Opto::Type::GLOBAL_OPTIONS

Instance Attribute Summary

Attributes inherited from Opto::Type

#options

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