Sha256: 787b91e07575c8d2c2f8c161368400e7f34be9bcc0d16ffb09510d0a066cde95

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

require_relative './materializer/internals'

module Materialist
  module Materializer

    def self.included(base)
      base.extend(Internals::ClassMethods)
      base.extend(Internals::DSL)

      root_mapping = []
      base.instance_variable_set(:@__materialist_options, {
        mapping: root_mapping,
        links_to_materialize: {}
      })
      base.instance_variable_set(:@__materialist_dsl_mapping_stack, [root_mapping])
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
materialist-3.8.3 lib/materialist/materializer.rb
materialist-3.8.2 lib/materialist/materializer.rb
materialist-3.8.1 lib/materialist/materializer.rb
materialist-3.8.0 lib/materialist/materializer.rb
materialist-3.7.0 lib/materialist/materializer.rb
materialist-3.6.0 lib/materialist/materializer.rb
materialist-3.5.0 lib/materialist/materializer.rb
materialist-3.4.0 lib/materialist/materializer.rb
materialist-3.3.0 lib/materialist/materializer.rb
materialist-3.2.0 lib/materialist/materializer.rb
materialist-3.1.0 lib/materialist/materializer.rb