Class: Arel::Nodes::SqlLiteral

Inherits:
String
  • Object
show all
Includes:
AliasPredication, Expressions, OrderPredications, Predications
Defined in:
lib/arel/nodes/sql_literal.rb

Direct Known Subclasses

BindParam

Instance Method Summary (collapse)

Methods included from OrderPredications

#asc, #desc

Methods included from AliasPredication

#as

Methods included from Predications

#does_not_match, #does_not_match_all, #does_not_match_any, #eq, #eq_all, #eq_any, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #in_all, #in_any, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #not_eq, #not_eq_all, #not_eq_any, #not_in, #not_in_all, #not_in_any

Methods included from Expressions

#average, #count, #extract, #maximum, #minimum, #sum

Instance Method Details

- (Object) encode_with(coder)



9
10
11
# File 'lib/arel/nodes/sql_literal.rb', line 9

def encode_with(coder)
  coder.scalar = self.to_s
end