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 108 def inspect 109 INSPECT_LOOKUPS.each do |c| 110 return "Sequel::#{c}" if Sequel.const_get(c) == self 111 end 112 super 113 end