3 ms·
as suggestion, regarding the following code: Stuff.new().each do |item| puts item end In idiomatic ruby, we drop this parenthesis, so the code will look l
by pelasaco 5y ago
as suggestion, regarding the following code:
Stuff.new().each do |item|
puts item
end
In idiomatic ruby, we drop this parenthesis, so the code will look like Stuff.new.each ...
- hirundo 5y agoputs Stuff.new.map(&:to_s).join("\n")