Class: Qonfig::Plugins::Abstract Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/plugins/abstract.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

Direct Known Subclasses

PrettyPrint, TOML

Class Method Summary collapse

Class Method Details

.inherited(child_klass) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • child_klass (Class)

Since:

  • 0.19.0



12
13
14
15
# File 'lib/qonfig/plugins/abstract.rb', line 12

def inherited(child_klass)
  child_klass.instance_variable_set(:@loaded, false)
  super
end

.load!void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Since:

  • 0.4.0



21
22
23
24
# File 'lib/qonfig/plugins/abstract.rb', line 21

def load!
  @loaded = true
  install!
end

.loaded?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

Since:

  • 0.19.0



30
31
32
# File 'lib/qonfig/plugins/abstract.rb', line 30

def loaded?
  @loaded
end