Phalado (Raphael Cordeiro)
- Login: Phalado
- Registered on: 08/20/2025
- Last sign in: 08/20/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/01/2025
-
01:50 PM Ruby Feature #21556: Add true? and false? methods to NilClass, TrueClass, FalseClass, and String
- shan (Shannon Skipper) wrote in #note-4:
> I wonder if the inclusion of the String variant could be considered again even though it has been merged? Is there a domain where `"true"` and `"false"` Strings are used? The Rails variant tryi... -
01:44 PM Ruby Feature #21556: Add true? and false? methods to NilClass, TrueClass, FalseClass, and String
- austin (Austin Ziegler) wrote in #note-3:
> Phalado (Raphael Cordeiro) wrote in #note-2:
> ...
Well, the idea is to recognize true/false values, ignoring truthy/falsy values because of JSON.
I also think this is something very 'Ruby' to...
08/30/2025
-
10:58 PM Ruby Feature #21556: Add true? and false? methods to NilClass, TrueClass, FalseClass, and String
- nobu (Nobuyoshi Nakada) wrote in #note-1:
> Phalado (Raphael Cordeiro) wrote:
> ...
Data received on requests and JSON conversion. It's not unusual that a Boolean is converted to a String, or users end up filling in as a String instead...
08/29/2025
-
05:28 PM Ruby Feature #21556 (Feedback): Add true? and false? methods to NilClass, TrueClass, FalseClass, and String
- Sometimes we need to check for an exact `true` or `false` value. This can be a string or a boolean value.
Usually, what I do to solve this is something like `value.to_s == true`, this way covering for strings, booleans, and nil values...