class Sequel::SQL::Constant
Represents constants or psuedo-constants (e.g. CURRENT_DATE
) in SQL
.
Constants
Attributes
constant[R]
The underlying constant related to this object.
Public Class Methods
new(constant)
click to toggle source
Create a constant with the given value
# File lib/sequel/sql.rb 1293 def initialize(constant) 1294 @constant = constant 1295 freeze 1296 end
Public Instance Methods
inspect()
click to toggle source
Reference the constant in the Sequel
module if there is one that matches.
Calls superclass method
Sequel::SQL::Expression#inspect
# File lib/sequel/extensions/eval_inspect.rb 110 def inspect 111 INSPECT_LOOKUPS.each do |c| 112 return "Sequel::#{c}" if Sequel.const_get(c) == self 113 end 114 super 115 end