Skip to content

Commit

Permalink
Update lib/yard/handlers/ruby/visibility_handler.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal authored Aug 26, 2024
1 parent 40204d2 commit 1e8b035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yard/handlers/ruby/visibility_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class YARD::Handlers::Ruby::VisibilityHandler < YARD::Handlers::Ruby::Base
when :var_ref, :vcall
self.visibility = ident.first.to_sym
when :command
if RUBY_VERSION >= '3.' && is_attribute_method?(statement.parameters.first)
if is_attribute_method?(statement.parameters.first)
parse_block(statement.parameters.first, visibility: ident.first.to_sym)
return
end
Expand Down

0 comments on commit 1e8b035

Please sign in to comment.