class Sequel::SQL::Constant

  1. lib/sequel/extensions/eval_inspect.rb
Parent: SQL

Methods

Public Instance

  1. inspect

Constants

INSPECT_LOOKUPS = [:CURRENT_DATE, :CURRENT_TIMESTAMP, :CURRENT_TIME, :SQLTRUE, :SQLFALSE, :NULL, :NOTNULL]  

Constants to lookup in the Sequel module.

Public Instance methods

inspect ()

Reference the constant in the Sequel module if there is one that matches.

[show source]
# 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