Sha256: 74394657f295bb14ee05e802e7d676c02262cb47cf111ba32298082540d00b6b

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module Dry
  module Initializer
    module Mixin
      # @private
      module Local
        attr_reader :klass

        def inspect
          "Dry::Initializer::Mixin::Local[#{klass}]"
        end
        alias_method :to_s, :inspect
        alias_method :to_str, :inspect

        private

        def included(klass)
          @klass = klass
          super
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-initializer-3.1.1 lib/dry/initializer/mixin/local.rb
dry-initializer-3.1.0 lib/dry/initializer/mixin/local.rb