class Sequel::SQL::NumericExpression

  1. lib/sequel/sql.rb
Superclass: ComplexExpression

Subclass of ComplexExpression where the expression results in a numeric value in SQL.

Methods

Public Instance

  1. +
  2. sql_number

Public Instance methods

+ (ce)

Always use + for + operator for NumericExpressions.

[show source]
     # File lib/sequel/sql.rb
1643 def +(ce)
1644   NumericExpression.new(:+, self, ce)
1645 end
sql_number ()

Return self instead of creating a new object to save on memory.

[show source]
     # File lib/sequel/sql.rb
1648 def sql_number
1649   self
1650 end