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 an constant with the given value
# File lib/sequel/sql.rb, line 1173 def initialize(constant) @constant = constant 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, line 109 def inspect INSPECT_LOOKUPS.each do |c| return "Sequel::#{c}" if Sequel.const_get(c) == self end super end