rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

Unclear behaviour of RDoc::RI::Driver#initialize

Open f6p opened this issue 3 years ago • 0 comments

Hello,

I think I found misleading comment or a bug.

Ri driver initialize method comment states that initial driver options come (partly) from result of process_args call. Thats not true because process_args is not called and instead passed options hash is merged with default_options (whitch is a method and also doesn't call process_args). Overall during driver initalization process_args doesn't seem to be called at all.

As a resuld RI env variable is not parsed (as the code that process it is in process_args) and its contents are ignored.

I'm not sure if it is desired behavior or just a orphaned comment.

Cheers 🍷

f6p avatar Jul 17 '21 08:07 f6p