Module: Net

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

Overview

$Id$

NET::SNMP


Copyright © 2006-07 by Francis Cianfrocca. All Rights Reserved.

Gmail: garbagecat10

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Defined Under Namespace

Modules: BER Classes: LDAP, LDIF, SNMP, SnmpPdu

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

Handle the renamed constants.



265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/net/ldap/pdu.rb', line 265

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