Y
Yaxm Yaxm
Hi,
in java, I can use ? : shorthand operators to ensure s is assigned to
some value.
String s = s == null ? "" : s;
Is there similar shorthand operator in Ruby?
Thanks.
Yaxm
in java, I can use ? : shorthand operators to ensure s is assigned to
some value.
String s = s == null ? "" : s;
Is there similar shorthand operator in Ruby?
Thanks.
Yaxm