Skip to content

Commit 1e8b035

Browse files
authored
Update lib/yard/handlers/ruby/visibility_handler.rb
1 parent 40204d2 commit 1e8b035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/yard/handlers/ruby/visibility_handler.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class YARD::Handlers::Ruby::VisibilityHandler < YARD::Handlers::Ruby::Base
1414
when :var_ref, :vcall
1515
self.visibility = ident.first.to_sym
1616
when :command
17-
if RUBY_VERSION >= '3.' && is_attribute_method?(statement.parameters.first)
17+
if is_attribute_method?(statement.parameters.first)
1818
parse_block(statement.parameters.first, visibility: ident.first.to_sym)
1919
return
2020
end

0 commit comments

Comments
 (0)