class Extant::Coercers::ArrayCoercerBuilder

Public Class Methods

build(opts) click to toggle source
# File lib/extant/coercers/array.rb, line 44
def self.build(opts)
  value_type_local = Extant::Coercers.find(opts[:array_format].first)

  Class.new(Extant::Coercers::Array) do
    self.value_type = value_type_local

    def self.coercer_name
      'array'
    end
  end
end
coercer_name() click to toggle source
# File lib/extant/coercers/array.rb, line 50
def self.coercer_name
  'array'
end