Hello Patrick,

PG> ones created with attr_accessor et al.) but are not defined with
PG> attr_accessor, because Ruby gives me lots of warnings about redefining
PG> the method.

PG> So now I have:

PG> class Foo

PG>   # Bar is very important
PG>   attr_accessor :bar

PG>   # Baz is crazy
PG>   attr_accessor :baz

Add a "$VERBOSE = false" here

PG>   def bar= (obj)  #:nodoc:
PG>     ...
PG>   end
PG>   def bar     #:nodoc:
PG>     # calculate
PG>     return @complex_data_structure
PG>   end

PG>   def baz= (obj) #:nodoc:
PG>     ...
PG>   end
PG>   def baz   #:nodoc:
PG>     ...
PG>   end
PG> end

And a "$VERBOSE = true" here.
Maybe save value in another global variable like $OLD_VERBOSE and
restore from there.

This hides the duplication messages. Don't know about another
solution. Maybe in the future we can add the disabling of individual
warnings as we can in every C compiler.




-- 
 Best regards,                        emailto: scholz at scriptolutions dot com
 Lothar Scholz                        http://www.ruby-ide.com
 CTO Scriptolutions                   Ruby, PHP, Python IDE 's