Sha256: 591d556061f8c5cb8fede403c62b232ac5915a841fcb37396a8ec2573337eb87
Contents?: true
Size: 547 Bytes
Versions: 18
Compression:
Stored size: 547 Bytes
Contents
# frozen_string_literal: true require_relative 'supported_options' module GraphqlDevise module MountMethod class OptionSanitizer def initialize(options = {}, supported_options = MountMethod::SUPPORTED_OPTIONS) @options = options @supported_options = supported_options end def call! @supported_options.each_with_object(Struct.new(*@supported_options.keys).new) do |(key, checker), result| result[key] = checker.call!(@options[key], key) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems