Sha256: d003f3cd62543553f71a1188bd0b7c75a3499332259777da213c68af1b8a807b

Contents?: true

Size: 616 Bytes

Versions: 12

Compression:

Stored size: 616 Bytes

Contents

# frozen_string_literal: true

module SmartCore::Container::DefinitionDSL::Commands::Instantiation
  # @api private
  # @since 0.1.0
  class FreezeState < SmartCore::Container::DefinitionDSL::Commands::Base
    # @since 0.1.0
    self.inheritable = false

    # @param registry [SmartCore::Container::Registry]
    # @return [void]
    #
    # @api private
    # @since 0.1.0
    def call(registry)
      registry.freeze!
    end

    # @return [SmartCore::Container::DefinitionDSL::Commands::Instantiation::FreezeState]
    #
    # @api private
    # @since 0.1.0
    def dup
      self.class.new
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_container-0.11.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.10.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.9.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.8.1 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.8.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.7.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.6.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.5.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.4.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.3.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.2.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb
smart_container-0.1.0 lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb