Class: Extant::Coercers::ArrayCoercerBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/extant/coercers/array.rb

Class Method Summary collapse

Class Method Details

.build(opts) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# 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