diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-03 15:21:53 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-03 15:21:53 +0000 |
commit | bd895ab17616bfae882990e302aa1b9036043129 (patch) | |
tree | 2d18e66bd0bc136fd7a69eca8a9c3aa4ac6fbe99 /lib/rexml/parsers/baseparser.rb | |
parent | b53d9940f966aac8b52119ed125ac4a99725057b (diff) | |
download | ruby-bd895ab17616bfae882990e302aa1b9036043129.tar.gz |
* lib/rexml/parsers/baseparser.rb: use private instead of _xxx
method name. This is Ruby code not Python code.
refs #5696
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/parsers/baseparser.rb')
-rw-r--r-- | lib/rexml/parsers/baseparser.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index a992f4c710..e4d89cd7d4 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -180,14 +180,14 @@ module REXML # Returns the next event. This is a +PullEvent+ object. def pull - _pull_inner.tap do |event| + pull_event.tap do |event| @listeners.each do |listener| listener.receive event end end end - def _pull_inner + def pull_event if @closed x, @closed = @closed, nil return [ :end_element, x ] @@ -436,6 +436,7 @@ module REXML end return [ :dummy ] end + private :pull_event def entity( reference, entities ) value = nil |