(edited) ... = periods @shifts = shifts @selector ... => ... = periods.to_enum @shifts = shifts.to_enum @selector ...