Array With Member

The built-in array type supports defining the member's type:

PostStatuses = Types::Array.of(Types::Coercible::String)

PostStatuses[[:foo, :bar]] # ["foo", "bar"]

octocatEdit on GitHub