Exception: RSS::UnknownTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::UnknownTagError
- Defined in:
- lib/rss/rss.rb
Overview
RSS does not allow for free-form tag names, so if an RSS feed contains a tag that we don’t know about, an UnknownTagError is raised.
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(tag, uri) ⇒ UnknownTagError
constructor
A new instance of UnknownTagError.
Constructor Details
#initialize(tag, uri) ⇒ UnknownTagError
Returns a new instance of UnknownTagError.
133 134 135 136 |
# File 'lib/rss/rss.rb', line 133 def initialize(tag, uri) @tag, @uri = tag, uri super("tag <#{tag}> is unknown in namespace specified by uri <#{uri}>") end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
132 133 134 |
# File 'lib/rss/rss.rb', line 132 def tag @tag end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
132 133 134 |
# File 'lib/rss/rss.rb', line 132 def uri @uri end |