# File lib/rdoc/class_module.rb, line 196 def each_ancestor # :yields: module ancestors.each do |mod| next if String === mod yield mod end end