Module: ROM::Mapper::DSL

Included in:
ROM::Mapper
Defined in:
lib/rom/mapper/dsl.rb

Overview

Mapper class-level DSL including Attribute DSL and Model DSL

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ 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.

Extend mapper class with macros and DSL methods


13
14
15
16
# File 'lib/rom/mapper/dsl.rb', line 13

def self.included(klass)
  klass.extend(Dry::Core::ClassAttributes)
  klass.extend(ClassMethods)
end