Skip to content
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

write method bug with boolean values #125

Open
devsheva opened this issue Feb 27, 2025 · 0 comments
Open

write method bug with boolean values #125

devsheva opened this issue Feb 27, 2025 · 0 comments

Comments

@devsheva
Copy link

devsheva commented Feb 27, 2025

When you try to use the general write method to write a list of tokens, containing boolean values, it leads to unexpected situations.
For example if a false token is present, it will be wrote as empty string.

I think this happens due to lack of a boolean rule in the write method, unlike the one to identify numbers etc.

Workaround

In case of a false value, force token to string.

token.is_a?(FalseClass) ? "FALSE" : token
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

No branches or pull requests

1 participant