Election results in the London Borough of Sutton.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 regels
211 B

  1. ward = ''
  2. electorate = ''
  3. ARGF.each do |line|
  4. if line[0,2] == '# '
  5. ward = line[2..-1].chomp
  6. elsif line[0,3] == '## '
  7. electorate = line[3..-1].chomp
  8. else
  9. puts [ ward, line ].join ','
  10. end
  11. end