self.===

in lib/openai/internal/type/boolean.rb [18:56]


        def self.===(other) = other == true || other == false

        
        
        
        def self.==(other) = other.is_a?(Class) && other <= OpenAI::Internal::Type::Boolean

        class << self
          
          
          
          
          
          
          
          
          
          
          
          
          
          def coerce(value, state:)
            state.fetch(:exactness)[value == true || value == false ? :yes : :no] += 1
            value
          end

          
          
          
          
          
          
          
          
          
          
          
        end