Answer
Rail parser handles keys like "yes" or "no" evaluate to boolean true and false, therefore:
yes -> true
no -> false
In order to use the strings ‘yes’ and ‘no’ as keys, you need to wrap them with quotes:
"yes" : "yes"
"no" : "no"
There's a long list of reserved words with this behavior:
y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF
This applies to both YML and YAML files.
Comments
0 comments
Please sign in to leave a comment.