Skip to content

Fix #tokens_to_s method for token streams #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2018
Merged

Fix #tokens_to_s method for token streams #592

merged 1 commit into from
Jan 26, 2018

Conversation

robin850
Copy link
Contributor

Hello,

This pull request is a tiny follow-up to #512 to fix the tokens_to_s method for RDoc::TokenStream. As the token stream isn't represented by an array of token classes anymore but rather with an array of hashes, the token's text is accessible through a key and not a method.

Have a nice day !

Tiny follow-up to #512. As the token stream isn't represented by an
array of token classes but rather with an array of hashes, the token's
text is accessible through a key and not a method.
@aycabta aycabta merged commit c55c851 into ruby:master Jan 26, 2018
@aycabta
Copy link
Member

aycabta commented Jan 26, 2018

Good catch, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants