Sha256: 9b935eeb108f137fcb8614efd267cb271c36ecab1ac107ba4f74f886b5945aac

Contents?: true

Size: 660 Bytes

Versions: 13

Compression:

Stored size: 660 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.4.0
class Qonfig::Plugins::Abstract
  class << self
    # @param child_klass [Class]
    # @return [void]
    #
    # @api private
    # @since 0.19.0
    def inherited(child_klass)
      child_klass.instance_variable_set(:@loaded, false)
      super
    end

    # @return [void]
    #
    # @api private
    # @since 0.4.0
    def load!
      @loaded = true
      install!
    end

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

    private

    # @return [void]
    #
    # @api private
    # @since 0.19.0
    def install!; end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
qonfig-0.30.0 lib/qonfig/plugins/abstract.rb
qonfig-0.28.0 lib/qonfig/plugins/abstract.rb
qonfig-0.27.0 lib/qonfig/plugins/abstract.rb
qonfig-0.26.0 lib/qonfig/plugins/abstract.rb
qonfig-0.25.0 lib/qonfig/plugins/abstract.rb
qonfig-0.24.1 lib/qonfig/plugins/abstract.rb
qonfig-0.24.0 lib/qonfig/plugins/abstract.rb
qonfig-0.23.0 lib/qonfig/plugins/abstract.rb
qonfig-0.22.0 lib/qonfig/plugins/abstract.rb
qonfig-0.21.0 lib/qonfig/plugins/abstract.rb
qonfig-0.20.0 lib/qonfig/plugins/abstract.rb
qonfig-0.19.1 lib/qonfig/plugins/abstract.rb
qonfig-0.19.0 lib/qonfig/plugins/abstract.rb