Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 246 Bytes

array-with-member.html.md

File metadata and controls

13 lines (10 loc) · 246 Bytes
title layout name
Array With Member
gem-single
dry-types

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

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

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