Method: Hanami::Model::Types::ClassMethods#Collection
- Defined in:
- lib/hanami/model/types.rb
#Collection(type) ⇒ Object
Define an array of given type
75 76 77 78 |
# File 'lib/hanami/model/types.rb', line 75 def Collection(type) type = Schema::CoercibleType.new(type) unless type.is_a?(Dry::Types::Definition) Types::Array.member(type) end |