module Anthropic::Internal::Type::Union

def ===(other)

Returns:
  • (Boolean) -

Parameters:
  • other (Object) --
def ===(other)
  known_variants.any? do |_, variant_fn|
    variant_fn.call === other
  end
end