Exception: RSS::NotExpectedTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::NotExpectedTagError
- Defined in:
- lib/rss/rss.rb
Overview
Raised when an unexpected tag is encountered.
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#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, parent) ⇒ NotExpectedTagError
constructor
A new instance of NotExpectedTagError.
Constructor Details
#initialize(tag, uri, parent) ⇒ NotExpectedTagError
Returns a new instance of NotExpectedTagError.
139 140 141 142 |
# File 'lib/rss/rss.rb', line 139 def initialize(tag, uri, parent) @tag, @uri, @parent = tag, uri, parent super("tag <{#{uri}}#{tag}> is not expected in tag <#{parent}>") end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def parent @parent end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def tag @tag end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
138 139 140 |
# File 'lib/rss/rss.rb', line 138 def uri @uri end |