Module: Net

Defined in:
lib/net/ber.rb,
lib/net/ldap.rb,
lib/net/snmp.rb,
lib/net/ldap/pdu.rb,
lib/net/ldap/version.rb

Overview

:stopdoc:

Defined Under Namespace

Modules: BER Classes: LDAP, SNMP, SnmpPdu

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

Handle renamed constants Net::LdapPdu (Net::LDAP::PDU) and Net::LdapPduError (Net::LDAP::PDU::Error).



284
285
286
287
288
289
290
291
292
293
294
295
296
# File 'lib/net/ldap/pdu.rb', line 284

def self.const_missing(name) #:nodoc:
  case name.to_s
  when "LdapPdu"
    warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU instead."
    Net::LDAP::PDU
  when "LdapPduError"
    warn "Net::#{name} has been deprecated. Use Net::LDAP::PDU::Error instead."
    Net::LDAP::PDU::Error
  when 'LDAP'
  else
    super
  end
end