Class: SmartCore::Initializer::Attribute::Finalizer::Abstract Private

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

API:

  • private

Direct Known Subclasses

AnonymousBlock, InstanceMethod

Instance Method Summary collapse

Constructor Details

#initialize(finalizer) ⇒ 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:

Since:

  • 0.1.0

API:

  • private



11
12
13
# File 'lib/smart_core/initializer/attribute/finalizer/abstract.rb', line 11

def initialize(finalizer)
  @finalizer = finalizer
end

Instance Method Details

#call(value, instance) ⇒ Any

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:

Returns:

Raises:

Since:

  • 0.1.0

API:

  • private



21
22
23
24
25
# File 'lib/smart_core/initializer/attribute/finalizer/abstract.rb', line 21

def call(value, instance)
  # :nocov:
  raise NoMethodError
  # :nocov:
end

#dupSmartCore::Initializer::Attribute::Finalizer::Abstract

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.

Returns:

Since:

  • 0.1.0

API:

  • private



28
29
30
# File 'lib/smart_core/initializer/attribute/finalizer/abstract.rb', line 28

def dup
  self.class.new(finalizer)
end