Sha256: d71c71737a269d8d44e32868569a1d7c094be6eb5d1d2cc6f99c5090931c024d

Contents?: true

Size: 911 Bytes

Versions: 12

Compression:

Stored size: 911 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class Qonfig::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

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

  # @param data_set [Qonfig::DataSet]
  # @param settings [Qonfig::Settings]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def call(data_set, settings); 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
qonfig-0.28.0 lib/qonfig/commands/base.rb
qonfig-0.27.0 lib/qonfig/commands/base.rb
qonfig-0.26.0 lib/qonfig/commands/base.rb
qonfig-0.25.0 lib/qonfig/commands/base.rb
qonfig-0.24.1 lib/qonfig/commands/base.rb
qonfig-0.24.0 lib/qonfig/commands/base.rb
qonfig-0.23.0 lib/qonfig/commands/base.rb
qonfig-0.22.0 lib/qonfig/commands/base.rb
qonfig-0.21.0 lib/qonfig/commands/base.rb
qonfig-0.20.0 lib/qonfig/commands/base.rb
qonfig-0.19.1 lib/qonfig/commands/base.rb
qonfig-0.19.0 lib/qonfig/commands/base.rb