class Yarrow::Schema::Types::List

Public Class Methods

of(unit_type) click to toggle source
# File lib/yarrow/schema/types.rb, line 164
def self.of(unit_type)
  new(Instance.of(unit_type))
end

Public Instance Methods

cast(input) click to toggle source
# File lib/yarrow/schema/types.rb, line 168
def cast(input)
  input.map do |item|
    unit.cast(item)
  end
end