ruby-changes:22155
From: kou <ko1@a...>
Date: Wed, 4 Jan 2012 00:22:03 +0900 (JST)
Subject: [ruby-changes:22155] kou:r34204 (trunk): * lib/rexml/parsers/baseparser.rb: use private instead of _xxx
kou 2012-01-04 00:21:53 +0900 (Wed, 04 Jan 2012) New Revision: 34204 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34204 Log: * lib/rexml/parsers/baseparser.rb: use private instead of _xxx method name. This is Ruby code not Python code. refs #5696 Modified files: trunk/ChangeLog trunk/lib/rexml/parsers/baseparser.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 34203) +++ ChangeLog (revision 34204) @@ -1,3 +1,9 @@ +Wed Jan 4 00:19:54 2012 Kouhei Sutou <kou@c...> + + * lib/rexml/parsers/baseparser.rb: use private instead of _xxx + method name. This is Ruby code not Python code. + refs #5696 + Tue Jan 03 23:57:37 2012 Ayumu AIZAWA <ayumu.aizawa@g...> * lib/rexml/parsers/baseparser.rb: rexml BaseParser uses Index: lib/rexml/parsers/baseparser.rb =================================================================== --- lib/rexml/parsers/baseparser.rb (revision 34203) +++ lib/rexml/parsers/baseparser.rb (revision 34204) @@ -180,14 +180,14 @@ # 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 @@ end return [ :dummy ] end + private :pull_event def entity( reference, entities ) value = nil -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/