Module: Arel::Sql::RangeExtensions

Defined in:
lib/arel/engines/sql/core_extensions/range.rb

Instance Method Summary collapse

Instance Method Details

#exclusion_predicate_sqlObject



12
13
14
# File 'lib/arel/engines/sql/core_extensions/range.rb', line 12

def exclusion_predicate_sql
  "NOT BETWEEN"
end

#inclusion_predicate_sqlObject



8
9
10
# File 'lib/arel/engines/sql/core_extensions/range.rb', line 8

def inclusion_predicate_sql
  "BETWEEN"
end

#to_sql(formatter = nil) ⇒ Object



4
5
6
# File 'lib/arel/engines/sql/core_extensions/range.rb', line 4

def to_sql(formatter = nil)
  formatter.range self.begin, self.end
end