Sha256: 3a481c1ba523cc473874877409c56ff2ada5b35b0ed9dd0bbbb8805bd0bbce51

Contents?: true

Size: 644 Bytes

Versions: 13

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class SmartCore::Initializer::Attribute::Finalizer::Abstract
  # @param finalizer [Any]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def initialize(finalizer)
    @finalizer = finalizer
  end

  # @param value [Any]
  # @param instance [Any]
  # @return [Any]
  #
  # @api private
  # @since 0.1.0
  def call(value, instance)
    raise NoMethodError
  end

  # @return [SmartCore::Initializer::Attribute::Finalizer::Abstract]
  def dup
    self.class.new(finalizer)
  end

  private

  # @return [Any]
  #
  # @api private
  # @since 0.1.0
  attr_reader :finalizer
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
smart_initializer-0.7.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.6.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.5.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.4.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.3.2 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.3.1 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.3.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.2.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.1.0 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.1.0.alpha4 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.1.0.alpha3 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.1.0.alpha2 lib/smart_core/initializer/attribute/finalizer/abstract.rb
smart_initializer-0.1.0.alpha1 lib/smart_core/initializer/attribute/finalizer/abstract.rb