Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like:
Boolean(ENV[“SOME_FLAG”])
What's the Ruby idiom here?
Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like:
Boolean(ENV[“SOME_FLAG”])
What's the Ruby idiom here?
@floehopper @getajobmike yeah, if ruby provided it, I assume it'd look something like this.
https://api.rubyonrails.org/classes/ActiveModel/Type/Boolean.html