lib/yard/handlers/ruby/legacy/visibility_handler.rb in yard-0.6.8 vs lib/yard/handlers/ruby/legacy/visibility_handler.rb in yard-0.7.0
- old
+ new
@@ -1,8 +1,9 @@
# (see Ruby::VisibilityHandler)
class YARD::Handlers::Ruby::Legacy::VisibilityHandler < YARD::Handlers::Ruby::Legacy::Base
handles /\A(protected|private|public)(\s|\(|$)/
-
+ namespace_only
+
process do
vis = statement.tokens.first.text
if statement.tokens.size == 1
self.visibility = vis
else
\ No newline at end of file