Exception: RSS::MissingTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::MissingTagError
- Defined in:
- lib/rss/rss.rb
Overview
Since RSS is based on XML, it must have opening and closing tags that match. If they don’t, a MissingTagError will be raised.
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) ⇒ MissingTagError
constructor
A new instance of MissingTagError.
Constructor Details
#initialize(tag, parent) ⇒ MissingTagError
Returns a new instance of MissingTagError.
99 100 101 102 |
# File 'lib/rss/rss.rb', line 99 def initialize(tag, parent) @tag, @parent = tag, parent super("tag <#{tag}> is missing in tag <#{parent}>") end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
98 99 100 |
# File 'lib/rss/rss.rb', line 98 def parent @parent end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
98 99 100 |
# File 'lib/rss/rss.rb', line 98 def tag @tag end |