Over a million developers have joined DZone.

If Else For Each Without Writing Extra Lines!

·

a = [1, 2]

if a.each do |i|
  puts i
end.empty?
  puts "Empty"
end


http://www.freezzo.com
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}