Class: LDAP::Mod
- Inherits:
-
Object
- Object
- LDAP::Mod
- Defined in:
- lib/active_ldap/adapter/ldap_ext.rb
Instance Method Summary collapse
- #_initialize ⇒ Object
-
#initialize(op, type, vals) ⇒ Mod
constructor
A new instance of Mod.
- #original_to_s ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(op, type, vals) ⇒ Mod
Returns a new instance of Mod.
15 16 17 18 19 20 |
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 15 def initialize(op, type, vals) if (LDAP::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
#_initialize ⇒ Object
14 |
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 14 alias_method :_initialize, :initialize |
#original_to_s ⇒ Object
8 |
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 8 alias_method :original_to_s, :to_s |
#to_s ⇒ Object
9 10 11 |
# File 'lib/active_ldap/adapter/ldap_ext.rb', line 9 def to_s inspect end |