Skip to content

Instantly share code, notes, and snippets.

@jhollingworth
Created June 30, 2010 16:13
Show Gist options
  • Save jhollingworth/458881 to your computer and use it in GitHub Desktop.
Save jhollingworth/458881 to your computer and use it in GitHub Desktop.
days.collect {|d| Hpricot(d) }.each do |d|
rows = (d/"//table[contains(@id,'Timeslots')]/tbody/tr[not(@class)]").collect { |r| Slot.new r }
@days[Date.parse((d/".riTextBox").inner_text)] = rows
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment