Actually, it was a Ruby mistake on my part... I was thinking event_split needed to be declared outside the block.