class Sequel::BasicObject

  1. lib/sequel/sql.rb
Superclass: BasicObject

The Sequel::BasicObject class is just like the default BasicObject class, except that missing constants are resolved in Object. This allows the virtual row support to work with classes without prefixing them with ::, such as:

DB[:bonds].where{maturity_date > Time.now}

Methods

Public Class

  1. const_missing

Public Class methods

const_missing(name)

Lookup missing constants in ::Object

[show source]
   # File lib/sequel/sql.rb
12 def self.const_missing(name)
13   ::Object.const_get(name)
14 end