summaryrefslogtreecommitdiff
path: root/lib/rexml/parsers/lightparser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/parsers/lightparser.rb')
-rw-r--r--lib/rexml/parsers/lightparser.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rexml/parsers/lightparser.rb b/lib/rexml/parsers/lightparser.rb
index 8c555f7960..0f35034993 100644
--- a/lib/rexml/parsers/lightparser.rb
+++ b/lib/rexml/parsers/lightparser.rb
@@ -10,6 +10,10 @@ module REXML
@parser = REXML::Parsers::BaseParser.new( stream )
end
+ def add_listener( listener )
+ @parser.add_listener( listener )
+ end
+
def rewind
@stream.rewind
@parser.stream = @stream