col = ["a", "b", "c"]
col.map! { |x| x == "b" ? x + "!" : x }
=> ["a", "b!", "c"]
what does the ?
and :
in the block means/doing ?
tried my best to search thru ruby doc but nothing came up.
any reading I can do in regards to whatever that those expressions are?
help!