Module: DaemonKit::Configurable

Included in:
Configuration
Defined in:
lib/daemon_kit/core_ext/configurable.rb

Overview

Provide some advanced helpers for managing access to instance variables.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/daemon_kit/core_ext/configurable.rb', line 6

def self.included(base) #:nodoc:
  base.class_eval <<-EOF
    @configurables = {}
    @configurable_defaults = {}

    class << self
      attr_reader :configurables, :configurable_defaults
    end
  EOF

  base.extend( ClassMethods )
  base.send( :include, InstanceMethods )
end