Exception: RSS::TooMuchTagError

Inherits:
InvalidRSSError show all
Defined in:
lib/rss/rss.rb

Overview

Raised if there are more occurrences of the tag than expected.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parentObject (readonly)

Returns the value of attribute parent



88
89
90
# File 'lib/rss/rss.rb', line 88

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag



88
89
90
# File 'lib/rss/rss.rb', line 88

def tag
  @tag
end