Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more
# File rss/xmlscanner.rb, line 95 def on_attr_charref(code) @current_attr << [code].pack('U') end
# File rss/xmlscanner.rb, line 91 def on_attr_entityref(ref) @current_attr << entity(ref) end
# File rss/xmlscanner.rb, line 87 def on_attr_value(str) @current_attr << str end
# File rss/xmlscanner.rb, line 83 def on_attribute(name) @attrs[name] = @current_attr = '' end
# File rss/xmlscanner.rb, line 73 def on_charref(code) text([code].pack('U')) end
# File rss/xmlscanner.rb, line 69 def on_entityref(ref) text(entity(ref)) end
# File rss/xmlscanner.rb, line 65 def on_etag(name) tag_end(name) end
# File rss/xmlscanner.rb, line 79 def on_stag(name) @attrs = {} end
# File rss/xmlscanner.rb, line 101 def on_stag_end(name) tag_start(name, @attrs) end
# File rss/xmlscanner.rb, line 105 def on_stag_end_empty(name) tag_start(name, @attrs) tag_end(name) end
# File rss/xmlscanner.rb, line 49 def on_xmldecl_encoding(str) @encoding = str end
# File rss/xmlscanner.rb, line 57 def on_xmldecl_end xmldecl(@version, @encoding, @standalone == "yes") end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.