Class: Arel::Sql::Attribute
- Inherits:
-
WhereCondition
- Object
- Formatter
- WhereCondition
- Arel::Sql::Attribute
- Defined in:
- lib/arel/engines/sql/formatters.rb
Instance Attribute Summary
Attributes inherited from Formatter
Instance Method Summary collapse
Methods inherited from WhereCondition
#attribute, #expression, #select, #value
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from Arel::Sql::Formatter
Instance Method Details
#range(left, right) ⇒ Object
114 115 116 |
# File 'lib/arel/engines/sql/formatters.rb', line 114 def range(left, right) "#{scalar(left)} AND #{scalar(right)}" end |
#scalar(scalar) ⇒ Object
110 111 112 |
# File 'lib/arel/engines/sql/formatters.rb', line 110 def scalar(scalar) quote(scalar, environment.column) end |