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
1631 def +(ce)
1632   NumericExpression.new(:+, self, ce)
1633 end
sql_number ()

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

[show source]
     # File lib/sequel/sql.rb
1636 def sql_number
1637   self
1638 end