Sha256: 627f53676a7c4ba0c8b76e042b6d782cec6bf9d470ec08e4006c1cba23b57d9c
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
# frozen_string_literal: true module ConfigMapper module Validator def self.resolve(arg) return arg if arg.respond_to?(:call) if arg.respond_to?(:name) # looks like a primitive class -- find the corresponding coercion method return Kernel.method(arg.name) end arg end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
config_mapper-1.8.0 | lib/config_mapper/validator.rb |