Class: SmartCore::Container::DefinitionDSL::Commands::Instantiation::FreezeState Private

Inherits:
Base
  • Object
show all
Defined in:
lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.7.0

Instance Method Summary collapse

Instance Method Details

#call(registry) ⇒ void

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.

This method returns an undefined value.

Parameters:

Since:

  • 0.7.0



12
13
14
# File 'lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb', line 12

def call(registry)
  registry.freeze!
end

#dupSmartCore::Container::DefinitionDSL::Commands::Instantiation::FreezeState

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.



20
21
22
# File 'lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb', line 20

def dup
  self.class.new
end