Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like:

Boolean(ENV[“SOME_FLAG”])

What's the Ruby idiom here?

Feature #20882: Provide Boolean(...) - Ruby master - Ruby Issue Tracking System

Redmine

@getajobmike we’ve had to roll our own version of this in the past — it’d be a welcome add to the language