lib/betagouvbot/sorting_hat.rb
def call(community, date)
        sorted = sort(community, date)
        reconcile(community, members, sorted[:members], 'incubateur') +
          reconcile(community, alumni, sorted[:alumni], 'alumni')
      end
# Input: a date
# Input: a list of members' arrivals and departures
# Side-effect: keeps current members subscribed to one list and alumni to another
a date
Input: a list of members' arrivals and departures
Side-effect: keeps current members subscribed to one list and alumni to another
a date Input : a list of members ' arrivals and departures Side - effect : keeps current members subscribed to one list and alumni to another
def call(community, date)
        sorted = sort(community, date)
        reconcile(community, members, sorted[:members], 'incubateur') +
          reconcile(community, alumni, sorted[:alumni], 'alumni')
      end
def call ( community , date ) sorted = sort ( community , date ) reconcile ( community , members , sorted [ :members ] , 'incubateur' ) + reconcile ( community , alumni , sorted [ :alumni ] , 'alumni' ) end
Input: a date
Input: a list of members' arrivals and departures
Side-effect: keeps current members subscribed to one list and alumni to another
Input : a date Input : a list of members ' arrivals and departures Side - effect : keeps current members subscribed to one list and alumni to another
community
date