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