module Arel::Nodes

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/arel/nodes/and.rbs

module Arel::Nodes
  def self.build_quoted: (ActiveRecord::Relation::QueryAttribute? other, ?Arel::Attributes::Attribute attribute) -> ActiveRecord::Relation::QueryAttribute
end

def self.build_quoted(other, attribute = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.build_quoted: (ActiveRecord::Relation::QueryAttribute? other, ?Arel::Attributes::Attribute attribute) -> ActiveRecord::Relation::QueryAttribute

This signature was generated using 6 samples from 1 application.

def self.build_quoted(other, attribute = nil)
  case other
  when Arel::Nodes::Node, Arel::Attributes::Attribute, Arel::Table, Arel::SelectManager, Arel::Nodes::SqlLiteral, ActiveModel::Attribute
    other
  else
    case attribute
    when Arel::Attributes::Attribute
      Casted.new other, attribute
    else
      Quoted.new other
    end
  end
end