Sha256: 15c2d665a39ff4b4f606f7f22a00cd009fd452a64041b1bd3a7620af97ffae18

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

require 'rom/sql/dsl'

module ROM
  module SQL
    # @api private
    class GroupDSL < DSL
      private

      # @api private
      def respond_to_missing?(_meth, _include_private = false)
        true
      end

      # @api private
      def method_missing(meth, ...)
        if schema.key?(meth)
          schema[meth].canonical
        else
          ::Sequel::VIRTUAL_ROW.__send__(meth.to_s, ...)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-sql-3.7.0 lib/rom/sql/group_dsl.rb