4 ms·
Yes you're right. Ruby actually supports the comparison the author seeks [0]: > nil.to_s == "" > "".to_s == "" [0] https://stackoverflow.com/a/9915384
by rusk 9y ago
Yes you're right. Ruby actually supports the comparison the author seeks [0]:
> nil.to_s == ""
> "".to_s == ""
[0] https://stackoverflow.com/a/9915384 https://stackoverflow.com/a/9915384