Class: Ldaptic::Module

Inherits:
Module
  • Object
show all
Defined in:
lib/ldaptic.rb

Overview

An instance of this subclass of ::Module is returned by the Ldaptic::Module method.

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Module

:nodoc:



123
124
125
126
# File 'lib/ldaptic.rb', line 123

def initialize(options={})
  super()
  @options = options
end

Instance Method Details

#append_features(base) ⇒ Object



127
128
129
130
131
# File 'lib/ldaptic.rb', line 127

def append_features(base)
  base.extend(Methods)
  base.instance_variable_set(:@adapter, Ldaptic::Adapters.for(@options))
  base.module_eval { build_hierarchy }
end