ic(1.20.0-dev):001> "hello".present?
error in line 0
Error: expanding macro
In <top-level>:1:9
1 | "hello".present?
^-------
Error: undefined method 'present?' for String
Did you mean 'presence'?
ic(1.20.0-dev):002> "hello".presence
=> "hello"
ic(1.20.0-dev):003> "hello".blank?
=> false
ic(1.20.0-dev):004>
I just curious why we are not add a #present? method to String(as ruby on rails), only because we have presence available? presence is not always return Bool, it not good when use as condition.