class DTOSchema::Validators::ListValidator::Builder

Public Class Methods

new(schema) click to toggle source
# File lib/dto_schema/validators.rb, line 115
def initialize(schema)
  @schema = schema
end

Public Instance Methods

[](spec) click to toggle source
# File lib/dto_schema/validators.rb, line 119
def [] (spec)
  validator = Parse::parse_validator spec, @schema
  ListValidator.new @schema, validator
end