Class: Autoproj::PackageManifest::BaseLoader Private
- Inherits:
-
Object
- Object
- Autoproj::PackageManifest::BaseLoader
- Includes:
- REXML::StreamListener
- Defined in:
- lib/autoproj/package_manifest.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
REXML stream parser object used to filter nested tags
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ BaseLoader
constructor
private
A new instance of BaseLoader.
- #tag_end(name) ⇒ Object private
- #tag_start(name, attributes) ⇒ Object private
- #text(text) ⇒ Object private
Constructor Details
#initialize ⇒ BaseLoader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of BaseLoader.
165 166 167 |
# File 'lib/autoproj/package_manifest.rb', line 165 def initialize @tag_level = 0 end |
Instance Method Details
#tag_end(name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
173 174 175 |
# File 'lib/autoproj/package_manifest.rb', line 173 def tag_end(name) toplevel_tag_end(name) if (@tag_level -= 1) == 1 end |
#tag_start(name, attributes) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
169 170 171 |
# File 'lib/autoproj/package_manifest.rb', line 169 def tag_start(name, attributes) toplevel_tag_start(name, attributes) if (@tag_level += 1) == 2 end |
#text(text) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
177 178 179 180 |
# File 'lib/autoproj/package_manifest.rb', line 177 def text(text) @tag_text = @tag_text.dup @tag_text << text if @tag_text end |