class Mustermann::Caster::Value

@!visibility private
Class for block based casts that are triggered for key/value pairs with a matching value.

def cast(key, value)

Other tags:
    See: Mustermann::Caster#cast -
def cast(key, value)
  super if @type === value
end

def initialize(type, &block)

Parameters:
  • type (#===) -- used for matching values
def initialize(type, &block)
  @type = type
  super(&block)
end