How about making this more succinct via:

>> @occurences.map(&:line)

?