Election results in the London Borough of Sutton.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
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