Sha256: 1536c153ae9b2d48ac8275209d8345dde6a5f25242a1cbacab1d44e2ad3d3a80

Contents?: true

Size: 537 Bytes

Versions: 16

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class SmartCore::Initializer::Extensions::ExtInit < SmartCore::Initializer::Extensions::Abstract
  # @param extender [Proc]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def initialize(extender)
    @extender = extender
  end

  # @param instance [Any]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def call(instance)
    extender.call(instance)
  end

  private

  # @return [Proc]
  #
  # @api private
  # @since0 0.1.0
  attr_reader :extender
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
smart_initializer-0.11.1 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.11.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.10.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.9.1 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.9.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.8.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.7.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.6.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.5.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.4.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.3.2 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.3.1 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.3.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.2.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.1.0 lib/smart_core/initializer/extensions/ext_init.rb
smart_initializer-0.1.0.alpha4 lib/smart_core/initializer/extensions/ext_init.rb