Skip to content

Commit

Permalink
Update lib/rdoc/token_stream.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Hefner <[email protected]>
  • Loading branch information
toshimaru and jonathanhefner authored Nov 21, 2023
1 parent c77c7e7 commit 8050211
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rdoc/token_stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def token_stream
# Returns a string representation of the token stream

def tokens_to_s
return token_stream.to_s unless token_stream

token_stream.compact.map { |token| token[:text] }.join ''
Array(token_stream).compact.map { |token| token[:text] }.join ''
end

end

0 comments on commit 8050211

Please sign in to comment.