X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fvendor%2Fbuilder-2.1.2%2Fbuilder%2Fxmlevents.rb;fp=vendor%2Frails%2Factivesupport%2Flib%2Factive_support%2Fvendor%2Fbuilder-2.1.2%2Fbuilder%2Fxmlevents.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=b373e4da3ce906e7bd4c91fa44c876137e592b4c;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git
diff --git a/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb b/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb
deleted file mode 100644
index b373e4d..0000000
--- a/vendor/rails/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/env ruby
-
-#--
-# Copyright 2004 by Jim Weirich (jim@weirichhouse.org).
-# All rights reserved.
-
-# Permission is granted for use, copying, modification, distribution,
-# and distribution of modified versions of this work as long as the
-# above copyright notice is included.
-#++
-
-require 'builder/xmlmarkup'
-
-module Builder
-
- # Create a series of SAX-like XML events (e.g. start_tag, end_tag)
- # from the markup code. XmlEvent objects are used in a way similar
- # to XmlMarkup objects, except that a series of events are generated
- # and passed to a handler rather than generating character-based
- # markup.
- #
- # Usage:
- # xe = Builder::XmlEvents.new(handler)
- # xe.title("HI") # Sends start_tag/end_tag/text messages to the handler.
- #
- # Indentation may also be selected by providing value for the
- # indentation size and initial indentation level.
- #
- # xe = Builder::XmlEvents.new(handler, indent_size, initial_indent_level)
- #
- # == XML Event Handler
- #
- # The handler object must expect the following events.
- #
- # [start_tag(tag, attrs)]
- # Announces that a new tag has been found. +tag+ is the name of
- # the tag and +attrs+ is a hash of attributes for the tag.
- #
- # [end_tag(tag)]
- # Announces that an end tag for +tag+ has been found.
- #
- # [text(text)]
- # Announces that a string of characters (+text+) has been found.
- # A series of characters may be broken up into more than one
- # +text+ call, so the client cannot assume that a single
- # callback contains all the text data.
- #
- class XmlEvents < XmlMarkup
- def text!(text)
- @target.text(text)
- end
-
- def _start_tag(sym, attrs, end_too=false)
- @target.start_tag(sym, attrs)
- _end_tag(sym) if end_too
- end
-
- def _end_tag(sym)
- @target.end_tag(sym)
- end
- end
-
-end