Module: Arel::Nodes
- Defined in:
- lib/arel/nodes/in.rb,
lib/arel/nodes/and.rb,
lib/arel/nodes/case.rb,
lib/arel/nodes/node.rb,
lib/arel/nodes/over.rb,
lib/arel/nodes/true.rb,
lib/arel/nodes/with.rb,
lib/arel/nodes/count.rb,
lib/arel/nodes/false.rb,
lib/arel/nodes/unary.rb,
lib/arel/nodes/binary.rb,
lib/arel/nodes/casted.rb,
lib/arel/nodes/regexp.rb,
lib/arel/nodes/window.rb,
lib/arel/nodes/comment.rb,
lib/arel/nodes/extract.rb,
lib/arel/nodes/matches.rb,
lib/arel/nodes/equality.rb,
lib/arel/nodes/function.rb,
lib/arel/nodes/grouping.rb,
lib/arel/nodes/ordering.rb,
lib/arel/nodes/terminal.rb,
lib/arel/nodes/ascending.rb,
lib/arel/nodes/bind_param.rb,
lib/arel/nodes/descending.rb,
lib/arel/nodes/inner_join.rb,
lib/arel/nodes/outer_join.rb,
lib/arel/nodes/join_source.rb,
lib/arel/nodes/select_core.rb,
lib/arel/nodes/sql_literal.rb,
lib/arel/nodes/string_join.rb,
lib/arel/nodes/table_alias.rb,
lib/arel/nodes/values_list.rb,
lib/arel/nodes/homogeneous_in.rb,
lib/arel/nodes/named_function.rb,
lib/arel/nodes/full_outer_join.rb,
lib/arel/nodes/infix_operation.rb,
lib/arel/nodes/node_expression.rb,
lib/arel/nodes/unary_operation.rb,
lib/arel/nodes/delete_statement.rb,
lib/arel/nodes/insert_statement.rb,
lib/arel/nodes/right_outer_join.rb,
lib/arel/nodes/select_statement.rb,
lib/arel/nodes/update_statement.rb,
lib/arel/nodes/unqualified_column.rb
Defined Under Namespace
Modules: FetchAttribute Classes: Addition, And, Ascending, Between, Binary, BindParam, BitwiseAnd, BitwiseNot, BitwiseOr, BitwiseShiftLeft, BitwiseShiftRight, BitwiseXor, Case, Casted, Comment, Concat, Contains, Count, CurrentRow, DeleteStatement, Descending, Distinct, Division, DoesNotMatch, Else, Equality, Extract, False, Following, FullOuterJoin, Function, GreaterThan, GreaterThanOrEqual, Grouping, HomogeneousIn, In, InfixOperation, InnerJoin, InsertStatement, IsDistinctFrom, IsNotDistinctFrom, JoinSource, LeadingJoin, LessThan, LessThanOrEqual, Matches, Multiplication, NamedFunction, NamedWindow, Node, NodeExpression, NotEqual, NotIn, NotRegexp, NullsFirst, NullsLast, Or, Ordering, OuterJoin, Over, Overlaps, Preceding, Quoted, Range, Regexp, RightOuterJoin, Rows, SelectCore, SelectStatement, SqlLiteral, StringJoin, Subtraction, TableAlias, True, Unary, UnaryOperation, UnqualifiedColumn, UpdateStatement, ValuesList, When, Window, With, WithRecursive
Class Method Summary collapse
Class Method Details
.build_quoted(other, attribute = nil) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/arel/nodes/casted.rb', line 48 def self.build_quoted(other, attribute = nil) case other when Arel::Nodes::Node, Arel::Attributes::Attribute, Arel::Table, Arel::Nodes::BindParam, Arel::SelectManager, Arel::Nodes::Quoted, Arel::Nodes::SqlLiteral other else case attribute when Arel::Attributes::Attribute Casted.new other, attribute else Quoted.new other end end end |