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
1649 def +(ce)
1650   NumericExpression.new(:+, self, ce)
1651 end
sql_number()

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

[show source]
     # File lib/sequel/sql.rb
1654 def sql_number
1655   self
1656 end