Class: ROM::SQL::RestrictionDSL Private

Inherits:
DSL
  • Object
show all
Defined in:
lib/rom/sql/restriction_dsl.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from ROM::SQL::DSL

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
18
19
20
21
# File 'lib/rom/sql/restriction_dsl.rb', line 15

def method_missing(meth, *args, &block)
  if schema.key?(meth)
    schema[meth]
  else
    ::Sequel::VIRTUAL_ROW.__send__(meth, *args, &block)
  end
end

Instance Method Details

#call(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/rom/sql/restriction_dsl.rb', line 8

def call(&block)
  instance_exec(&block)
end