Class: Arel::Nodes::SqlLiteral
Instance Method Summary
collapse
#asc, #desc
#as
#between, #concat, #contains, #does_not_match, #does_not_match_all, #does_not_match_any, #does_not_match_regexp, #eq, #eq_all, #eq_any, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #in_all, #in_any, #is_distinct_from, #is_not_distinct_from, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #matches_regexp, #not_between, #not_eq, #not_eq_all, #not_eq_any, #not_in, #not_in_all, #not_in_any, #overlaps, #quoted_array, #when
#average, #count, #extract, #maximum, #minimum, #sum
Instance Method Details
#+(other) ⇒ Object
18
19
20
21
22
|
# File 'lib/arel/nodes/sql_literal.rb', line 18
def +(other)
raise ArgumentError, "Expected Arel node" unless Arel.arel_node?(other)
Fragments.new([self, other])
end
|
#encode_with(coder) ⇒ Object
11
12
13
|
# File 'lib/arel/nodes/sql_literal.rb', line 11
def encode_with(coder)
coder.scalar = self.to_s
end
|
#fetch_attribute ⇒ Object
15
16
|
# File 'lib/arel/nodes/sql_literal.rb', line 15
def fetch_attribute
end
|