Might Scare’em 🎃💀 :sidekiq: on Nostr: Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like: ...
Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like:
Boolean(ENV[“SOME_FLAG”])
What's the Ruby idiom here?
Published at
2024-11-08 21:03:50Event JSON
{
"id": "8c9a0e1c1991b04b2bdb197fd1aa0ed4c5427f460451bea088128c21724105c0",
"pubkey": "27c31fa686bfb1c592649726c967a93a7a08f1d87d0bddade0a45ca37604b5a8",
"created_at": 1731099830,
"kind": 1,
"tags": [
[
"proxy",
"https://ruby.social/users/getajobmike/statuses/113449358511469034",
"activitypub"
]
],
"content": "Ruby has Integer(...) and Float(...), but does it have Boolean(…) for things like:\n\nBoolean(ENV[“SOME_FLAG”])\n\nWhat's the Ruby idiom here?",
"sig": "b9efee324b23c0c18f080996da4de95be67479ac137d6ecd04e12fe12e3de8ffc2291c0b537fca213abef2b13964fdef6d8b3a57ee1f762b86316939fb832a6e"
}