Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

RDoc and singletons: msg#00053

Subject: RDoc and singletons
Hello,

I have a chunk of code that looks like this:

class << @products  
  attr_accessor :total_results, :total_pages
  alias_method  :old_inspect, :inspect
  
  def inspect
    str = ""
    ...
    str << old_inspect
  end
end

Basically, I'm redefining #inspect for a singleton of Array.

How do I avoid RDoc creating documentation for a class called @products?
I've tried :nodoc: on the line that defines the class, but this doesn't
work. Can this be done?

Ian
-- 
Ian Macdonald               | Due to a mixup in urology, orange juice
System Administrator        | will not be served this morning. 
ian@xxxxxxxxxxx             | 
http://www.caliban.org      | 
                            | 




<Prev in Thread] Current Thread [Next in Thread>