fork download
  1. ary = [:a, :b, :c]
  2.  
  3. s = "our array is: "
  4. if ary.empty?
  5. puts s + " empty"
  6. else
  7. puts s + ary.join(", ")
  8. end
  9.  
Success #stdin #stdout 0.05s 9648KB
stdin
Standard input is empty
stdout
our array is: a, b, c