diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-15 18:31:16 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-15 18:31:16 +0000 |
commit | 2403ad9e7de8976a83798f9d86f82f3b5ae0d2cd (patch) | |
tree | c0f4098655ece836190b90b412481b561d07e640 /lib/rexml/parsers/sax2parser.rb | |
parent | 4d33715fe4b0c9750b4cf4e71166e8d67ecc8395 (diff) |
REXML hadn't been tested with Ruby 1.8.0, which was really, really,
unbelievably stupid of me. There were a lot of warnings and some errors
that were caused by Block vs. Proc differences; these have been fixed.
REXML passes all of the tests under Ruby 1.8.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/parsers/sax2parser.rb')
-rw-r--r-- | lib/rexml/parsers/sax2parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/parsers/sax2parser.rb b/lib/rexml/parsers/sax2parser.rb index 8598fd43e9..4cddc4806d 100644 --- a/lib/rexml/parsers/sax2parser.rb +++ b/lib/rexml/parsers/sax2parser.rb @@ -185,7 +185,7 @@ module REXML end def add( pair ) - if pair[-1].kind_of? Proc + if pair[-1].kind_of? Proc or (defined? Block and pair[-1].kind_of? Block) @procs << pair unless @procs.include? pair else @listeners << pair unless @listeners.include? pair |