class Rlottery::RuleSet::InitialMatching < Rlottery::RuleSet::BaseRuleSet def run! @participants.each do |p| @slots.detect do |slot| slot_initial = slot.identifier[0].chr participant_initial = p.identifier[0].chr if slot_initial == participant_initial assign_pair(slot, p) else false end end end end end