Sha256: ef6b443d6dec3ea7a2ef826110b9d6a95d491135804afdf9d3a6587dfc0cf938
Contents?: true
Size: 385 Bytes
Versions: 4
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true require 'delegate' module MediaTypes class Scheme class CaseEqualityWithNil < SimpleDelegator def ===(other) other.nil? || super end end # noinspection RubyInstanceMethodNamingConvention def AllowNil(klazz) # rubocop:disable Naming/MethodName CaseEqualityWithNil.new(klazz) end end end
Version data entries
4 entries across 4 versions & 1 rubygems