Class: ROM::SQL::GroupDSL Private

Inherits:
DSL
  • Object
show all
Defined in:
lib/rom/sql/group_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 Attribute Summary

Attributes inherited from DSL

#picked_relations, #relations, #schema

Method Summary

Methods inherited from DSL

#`, #call, #exists, #initialize, #respond_to_missing?

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.



12
13
14
15
16
17
18
# File 'lib/rom/sql/group_dsl.rb', line 12

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