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.1.0

Instance Method Summary collapse

Methods inherited from Base

inheritable=, inheritable?, #inheritable?, inherited

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.1.0



15
16
17
# File 'lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb', line 15

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.



23
24
25
# File 'lib/smart_core/container/definition_dsl/commands/instantiation/freeze_state.rb', line 23

def dup
  self.class.new
end