class Grape::Validations::OneofCollector

ParamsScope and its helpers touch during definition.
the real API. Exposes only the slice of the API surface that
the variant’s validators are captured locally rather than registered on
Used when evaluating a single variant block of a oneof: schema so that
Stand-in for the +@api+ object that {ParamsScope} normally writes to.

def self.collect(variant_block)

collector and return the validators that the block registered.
Evaluate +variant_block+ in a fresh +ParamsScope+ backed by a new
def self.collect(variant_block)
  collector = new
  ParamsScope.new(api: collector, type: Hash, &variant_block)
  collector.validators
end

def configuration

def configuration
  nil
end

def declared_params

def declared_params
  inheritable_setting.namespace_stackable[:declared_params]
end

def initialize

def initialize
  @inheritable_setting = Grape::Util::InheritableSetting.new
  @inheritable_setting.namespace_inheritable[:do_not_document] = true
end

def validators

def validators
  inheritable_setting.namespace_stackable[:validations]
end