Skip to content

Commit 4eb4651

Browse files
committed
Fix parse_constant_visibility for Ripper
1 parent 1ffde6c commit 4eb4651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ def parse_visibility(container, single, tk)
19571957

19581958
def parse_constant_visibility(container, single, tk)
19591959
args = parse_symbol_arg
1960-
case tk.name
1960+
case tk[:text]
19611961
when 'private_constant'
19621962
vis = :private
19631963
when 'public_constant'

0 commit comments

Comments
 (0)