[ruby-cvs:73086] mame:r65986 (trunk): test/rdoc/test_rdoc_rdoc.rb: add dummy finish

mame at ruby-lang.org mame at ruby-lang.org
Mon Nov 26 14:46:02 JST 2018


mame	2018-11-26 14:46:02 +0900 (Mon, 26 Nov 2018)

  New Revision: 65986

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65986

  Log:
    test/rdoc/test_rdoc_rdoc.rb: add dummy finish
    
    RDoc::Options#@exclude is initialized as an empty array.
    Then, #finish converts it to a regexp or nil and reassign it to @exclude.
    Some methods of RDoc assumes that #finish has been already called.
    So, this change forces to assign nil to @exclude.
    
    This type confusion was found during work for removal of `Object#=~`.
    [Feature #15231]

  Modified files:
    trunk/test/rdoc/test_rdoc_rdoc.rb


More information about the ruby-cvs mailing list