You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: