lib/yard/cli/yardoc.rb in yard-0.5.7 vs lib/yard/cli/yardoc.rb in yard-0.5.8
- old
+ new
@@ -318,10 +318,11 @@
opts.on('--private', "Show or don't show private methods. (default hides private)") do
visibilities.push(:private)
end
opts.on('--no-private', "Hide objects with @private tag") do
- options[:verifier].add_expressions '!object.tag(:private) && !object.namespace.tag(:private)'
+ options[:verifier].add_expressions '!object.tag(:private) &&
+ (object.namespace.type == :proxy || !object.namespace.tag(:private))'
end
opts.on('--no-highlight', "Don't highlight code in docs as Ruby.") do
options[:no_highlight] = true
end