Seems like this would be a fairly common pattern - declaring the array and returning it:
def self.show_day_rows(days, month, year, offset)
daylines=[]
1.step(days,7).each do |line_starts_with|
daylines << CalDay.line_of_day_nums(month, year, line_starts_with, offset)
end
daylines
end
Is there a way to shorten this but still be legible?