Class: LDAP::Mod — activeldap - ActiveLdap

Class: LDAP::Mod

Inherits:
Object
  • Object
show all
Defined in:
lib/active_ldap/adapter/ldap_ext.rb

Instance Method Summary (collapse)

Constructor Details

- (Mod) initialize(op, type, vals)

Returns a new instance of Mod



20
21
22
23
24
25
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 20

def initialize(op, type, vals)
  if (VERSION.split(/\./).collect {|x| x.to_i} <=> [0, 9, 7]) <= 0
    @op, @type, @vals = op, type, vals # to protect from GC
  end
  _initialize(op, type, vals)
end

Instance Method Details

- (Object) _initialize



19
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 19

alias_method :_initialize, :initialize

- (Object) original_to_s



13
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 13

alias_method :original_to_s, :to_s

- (Object) to_s



14
15
16
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 14

def to_s
  inspect
end