Class: SmartCore::Initializer::Extension Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/initializer/extension.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.5.0

Instance Method Summary collapse

Constructor Details

#initialize(additional_initialization_flow) ⇒ 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.

Parameters:

  • additional_initialization_flow (Proc)

Since:

  • 0.5.0



11
12
13
# File 'lib/smart_core/initializer/extension.rb', line 11

def initialize(additional_initialization_flow)
  @additional_initialization_flow = additional_initialization_flow
end

Instance Method Details

#call(instance) ⇒ 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:

  • instance (Object)

Since:

  • 0.5.0



20
21
22
# File 'lib/smart_core/initializer/extension.rb', line 20

def call(instance)
  additional_initialization_flow.call(instance)
end

#dupvoid

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.

Since:

  • 0.5.0



28
29
30
# File 'lib/smart_core/initializer/extension.rb', line 28

def dup
  self.class.new(additional_initialization_flow)
end