D
darren kirby
Hi all,
I have a bunch of lines like:
This feels awkward and cumbersome, so I would imagine there is a more
idiomatic way to write it.
Thanks,
-d
I have a bunch of lines like:
foo = some_hash["some_key"] if some_hash.has_key?("some_key")
This feels awkward and cumbersome, so I would imagine there is a more
idiomatic way to write it.
Thanks,
-d