Represents constants or psuedo-constants (e.g. CURRENT_DATE
)
in SQL.
The underlying constant related to this object.
Create an constant with the given value
# File lib/sequel/sql.rb, line 1137 def initialize(constant) @constant = constant end
Reference the constant in the Sequel module if there is one that matches.
# File lib/sequel/extensions/eval_inspect.rb, line 103 def inspect INSPECT_LOOKUPS.each do |c| return "Sequel::#{c}" if Sequel.const_get(c) == self end super end