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).



243
244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/net/ldap/pdu.rb', line 243

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