Ruby tip: no need to iterate over an array to print it, ruby does the right thing, just call puts
Pontifications
- Simple ruby tip today following up from yesterday:
- No need for:
q["content"].split(' ').each {|c| puts c}
- because
puts
does the right thing, all you need to do is:
puts q["content"].split(' ')