[ruby/rdoc] fix: Fix NoMethodError for tokens_to_s method
tokens_to_s
Calling tokens_to_s gets an error if token_stream is nil:
token_stream
undefined method `compact' for nil:NilClass (NoMethodError)
So, fall back to an empty array if @token_stream is nil.
@token_stream
https://github.com/ruby/rdoc/commit/452e4a2600
[ruby/rdoc] fix: Fix NoMethodError for
tokens_to_smethodCalling
tokens_to_sgets an error iftoken_streamis nil:So, fall back to an empty array if
@token_streamis nil.https://github.com/ruby/rdoc/commit/452e4a2600