# File lib/feed_tools/vendor/html5/tests/test_serializer.rb, line 11 def each @tree.each do |token| case token[0] when 'StartTag' yield start_tag(token[1], token[2]) when 'EndTag' yield end_tag(token[1]) when 'EmptyTag' yield empty_tag(token[1], token[2]) when 'Comment' yield comment(token[1]) when 'Characters', 'SpaceCharacters' text(token[1]) {|textToken| yield textToken} when 'Doctype' yield doctype(token[1], token[2], token[3]) else raise "Unknown token type: " + token[0] end end end
Generated with the Darkfish Rdoc Generator 2.