Class
Constants
No documentation available
Instance Methods
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 112
def entity(ref)
ent = ENTITIES[ref]
if ent
ent
else
wellformed_error("undefined entity: #{ref}")
end
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 96
def on_attr_charref(code)
@current_attr << [code].pack('U')
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 92
def on_attr_entityref(ref)
@current_attr << entity(ref)
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 88
def on_attr_value(str)
@current_attr << str
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 84
def on_attribute(name)
@attrs[name] = @current_attr = ''
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 74
def on_charref(code)
text([code].pack('U'))
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 70
def on_entityref(ref)
text(entity(ref))
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 66
def on_etag(name)
tag_end(name)
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 80
def on_stag(name)
@attrs = {}
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 102
def on_stag_end(name)
tag_start(name, @attrs)
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 106
def on_stag_end_empty(name)
tag_start(name, @attrs)
tag_end(name)
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 50
def on_xmldecl_encoding(str)
@encoding = str
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 58
def on_xmldecl_end
xmldecl(@version, @encoding, @standalone == "yes")
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 54
def on_xmldecl_standalone(str)
@standalone = str
end
No documentation available
lib/rss/xmlscanner.rb
View on GitHub
# File tmp/rubies/ruby-2.7.6/lib/rss/xmlscanner.rb, line 46
def on_xmldecl_version(str)
@version = str
end
No documentation available