# File lib/feed_tools/vendor/html5/tests/preamble.rb, line 45 def each data = {} key = nil @f.each_line do |line| if line[0] == ## and @sections.include?(line[1..-2]) heading = line[1..-2] if data.any? and heading == @sections[0] data[key].chomp! #Remove trailing newline yield normaliseOutput(data) data = {} end key = heading data[key]="" elsif key data[key] += line end end yield normaliseOutput(data) if data end
Generated with the Darkfish Rdoc Generator 2.