@@ -311,7 +311,7 @@ def parse_comment_tomdoc(container, comment, line_no, start_line)
311311
312312 name , = signature . split %r%[ \( ]% , 2
313313
314- meth = RDoc ::AnyMethod . new comment . text , name
314+ meth = RDoc ::AnyMethod . new name
315315 record_location ( meth )
316316 meth . line = start_line
317317 meth . call_seq = signature
@@ -377,7 +377,7 @@ def handle_meta_method_comment(comment, directives, node)
377377
378378 if attributes
379379 attributes . each do |attr |
380- a = RDoc ::Attr . new ( @container , attr , rw , comment , singleton : @singleton )
380+ a = RDoc ::Attr . new ( attr , rw , comment , singleton : @singleton )
381381 a . store = @store
382382 a . line = line_no
383383 record_location ( a )
@@ -562,7 +562,7 @@ def add_alias_method(old_name, new_name, line_no)
562562 comment , directives = consecutive_comment ( line_no )
563563 handle_code_object_directives ( @container , directives ) if directives
564564 visibility = @container . find_method ( old_name , @singleton ) &.visibility || :public
565- a = RDoc ::Alias . new ( nil , old_name , new_name , comment , singleton : @singleton )
565+ a = RDoc ::Alias . new ( old_name , new_name , comment , singleton : @singleton )
566566 handle_modifier_directive ( a , line_no )
567567 a . store = @store
568568 a . line = line_no
@@ -581,7 +581,7 @@ def add_attributes(names, rw, line_no)
581581 return unless @container . document_children
582582
583583 names . each do |symbol |
584- a = RDoc ::Attr . new ( nil , symbol . to_s , rw , comment , singleton : @singleton )
584+ a = RDoc ::Attr . new ( symbol . to_s , rw , comment , singleton : @singleton )
585585 a . store = @store
586586 a . line = line_no
587587 a . type_signature_lines = type_signature_lines
@@ -644,7 +644,7 @@ def add_method(method_name, receiver_name:, receiver_fallback_type:, visibility:
644644 end
645645
646646 private def internal_add_method ( method_name , container , comment :, dont_rename_initialize : false , directives :, modifier_comment_lines : nil , line_no :, visibility :, singleton :, params :, calls_super :, block_params :, tokens :, type_signature_lines : nil ) # :nodoc:
647- meth = RDoc ::AnyMethod . new ( nil , method_name , singleton : singleton )
647+ meth = RDoc ::AnyMethod . new ( method_name , singleton : singleton )
648648 meth . comment = comment
649649 handle_code_object_directives ( meth , directives ) if directives
650650 modifier_comment_lines &.each do |line |
0 commit comments