Boolean value

Is it ok to declare boolean values in quotes in rb file ?
like override:  true
vs override:  "true"
  • post-author-pic
    Keith T
    12-10-2018

    I would avoid using strings in place of booleans. It is possible that it might work if the code reading the value explicitly casts the argument to a boolean, but you shouldn't rely on that.

Looking For Team Training?

Learn More