self.[]

in lib/anthropic/internal/type/hash_of.rb [26:47]


        def self.[](type_info, spec = {}) = new(type_info, spec)

        
        
        
        def ===(other)
          type = item_type
          case other
          in Hash
            other.all? do |key, val|
              case [key, val]
              in [Symbol | String, ^type]
                true
              else
                false
              end
            end
          else
            false
          end
        end