Sha256: 6fb5c835d3d5b0a857d7b399381a99286e1f7171db346e796029846f2f550d02

Contents?: true

Size: 873 Bytes

Versions: 12

Compression:

Stored size: 873 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class SmartCore::Container::DefinitionDSL::Commands::Base
  class << self
    # @param identifier [Boolean]
    # @return [Boolean]
    #
    # @api private
    # @since 0.19.0
    def inheritable=(identifier)
      @inheritable = identifier
    end

    # @return [Boolean]
    #
    # @api private
    # @since 0.19.0
    def inheritable?
      @inheritable
    end

    # @return [Boolean]
    #
    # @api private
    # @since 0.19.0
    def inherited(child_klass)
      child_klass.instance_variable_set(:@inheritable, true)
      super
    end
  end

  # @param regsitry [SmartCore::Container::Registry]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def call(registry); end

  # @return [Boolean]
  #
  # @api private
  # @since 0.19.0
  def inheritable?
    self.class.inheritable?
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_container-0.11.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.10.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.9.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.8.1 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.8.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.7.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.6.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.5.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.4.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.3.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.2.0 lib/smart_core/container/definition_dsl/commands/base.rb
smart_container-0.1.0 lib/smart_core/container/definition_dsl/commands/base.rb