Exception: RSS::TooMuchTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::TooMuchTagError
- Defined in:
- lib/rss/rss.rb
Overview
Raised if there are more occurrences of the tag than expected.
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag, parent) ⇒ TooMuchTagError
constructor
A new instance of TooMuchTagError.
Constructor Details
#initialize(tag, parent) ⇒ TooMuchTagError
Returns a new instance of TooMuchTagError.
89 90 91 92 |
# File 'lib/rss/rss.rb', line 89 def initialize(tag, parent) @tag, @parent = tag, parent super("tag <#{tag}> is too much in tag <#{parent}>") end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
88 89 90 |
# File 'lib/rss/rss.rb', line 88 def parent @parent end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
88 89 90 |
# File 'lib/rss/rss.rb', line 88 def tag @tag end |