class Sequel::SQL::Constant
Represents constants or psuedo-constants (e.g. CURRENT_DATE
) in SQL
.
Constants
Attributes
The underlying constant related to this object.
Public Class Methods
Source
# File lib/sequel/sql.rb 1302 def initialize(constant) 1303 @constant = constant 1304 freeze 1305 end
Create a constant with the given value
Public Instance Methods
Source
# 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
Reference the constant in the Sequel
module if there is one that matches.
Calls superclass method
Sequel::SQL::Expression#inspect