Module: WWW

Defined in:
lib/mechanize.rb

Class Method Summary collapse

Class Method Details

.const_missing(klass) ⇒ Object



645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
# File 'lib/mechanize.rb', line 645

def self.const_missing klass
  warn <<eomsg
!!!!! DEPRECATION NOTICE !!!!!
The WWW constant is deprecated, please switch to the new top-level Mechanize
constant.  WWW will be removed in Mechanize version 2.0

You've referenced the WWW constant from #{caller.first}, please
switch the "WWW" to "Mechanize".  Thanks!

Sincerely,

Pew Pew Pew
eomsg
  Object.const_get(klass)
end