lib/yard/cli/yardoc.rb in yard-0.9.27 vs lib/yard/cli/yardoc.rb in yard-0.9.28
- old
+ new
@@ -648,10 +648,11 @@
options.hide_void_return = true
end
opts.on('--query QUERY', "Only show objects that match a specific query") do |query|
next if YARD::Config.options[:safe_mode]
- options.verifier.add_expressions(query.taint)
+ query.taint if query.respond_to?(:taint)
+ options.verifier.add_expressions(query)
end
opts.on('--title TITLE', 'Add a specific title to HTML documents') do |title|
options.title = title
end