Exception: RSS::MissingTagError

Inherits:
InvalidRSSError show all
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

Instance Method Summary collapse

Constructor Details

#initialize(tag, parent) ⇒ MissingTagError

Returns a new instance of MissingTagError.



98
99
100
101
# File 'lib/rss/rss.rb', line 98

def initialize(tag, parent)
  @tag, @parent = tag, parent
  super("tag <#{tag}> is missing in tag <#{parent}>")
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



97
98
99
# File 'lib/rss/rss.rb', line 97

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



97
98
99
# File 'lib/rss/rss.rb', line 97

def tag
  @tag
end