Sha256: a8565443cb4cf68bec92ba8214a4a43d1dba4b8dc5122fb2a8a53b81ac8a83d9
Contents?: true
Size: 570 Bytes
Versions: 7
Compression:
Stored size: 570 Bytes
Contents
require 'rom/setup_dsl/mapper' module ROM class Setup # Mapper definition DSL used by Setup DSL # # @private class MapperDSL attr_reader :mappers # @api private def initialize(&block) instance_exec(&block) end # Define a mapper class # # @param [Symbol] name of the mapper # @param [Hash] options # # @return [Class] # # @api public def define(name, options = {}, &block) Mapper.build_class(name, options, &block) self end end end end
Version data entries
7 entries across 7 versions & 1 rubygems