diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-01-07 20:14:09 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-01-07 11:39:46 +0000 |
commit | 7fcc6f04ac75336bcf9a8250da2948dcd8da2825 (patch) | |
tree | 6aace39974af891b0b3005ffd5b1a9ec9c56c5b5 /lib/rdoc/parser | |
parent | 2325b72cf3f14448603a97024c112d8dde159f5a (diff) |
[ruby/rdoc] Visibility should begin from `public` for each scope
Even for singleton class definition such as `class << self` that
shares the same container with the outer scope, its visibility is
separated and set to `public` by default.
https://github.com/ruby/rdoc/commit/baf26363b9
Diffstat (limited to 'lib/rdoc/parser')
-rw-r--r-- | lib/rdoc/parser/ruby.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index aab91e0790..2cc629ebdf 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -1782,6 +1782,7 @@ class RDoc::Parser::Ruby < RDoc::Parser nest = 1 save_visibility = container.visibility + container.visibility = :public unless current_method non_comment_seen = true |