Module: Net

Defined in:
lib/net/ber.rb,
lib/net/ldap.rb,
lib/net/snmp.rb,
lib/net/ldap/pdu.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).



260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/net/ldap/pdu.rb', line 260

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