class Anthropic::Internal::Type::HashOf
def initialize(type_info, spec = {})
(**spec)
-
:"nil?"
(Boolean
) -- -
:union
(Proc
) -- -
:enum
(Proc
) -- -
:const
(NilClass, TrueClass, FalseClass, Integer, Float, Symbol
) --
Parameters:
-
spec
(Hash{Symbol=>Object}
) -- . -
type_info
(Hash{Symbol=>Object}, Proc, Anthropic::Internal::Type::Converter, Class
) --
Other tags:
- Api: - private
def initialize(type_info, spec = {}) @item_type_fn = Anthropic::Internal::Type::Converter.type_info(type_info || spec) @nilable = spec[:nil?] end