see if it is nil: : nil « Language Basics « Ruby






see if it is nil:


'hello'.nil?                  # false

 








Related examples in the same category

1.Compact an array: it removes the nils
2.Assign nil to array element
3.Is it a nil value
4.If x is non-nil