123456789_123456789_123456789_123456789_123456789_

Exception: RSS::TooMuchTagError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InvalidRSSError, Error, StandardError
Instance Chain:
self, InvalidRSSError, Error, StandardError
Inherits: RSS::InvalidRSSError
Defined in: lib/rss/rss.rb

Overview

Some tags must only exist a specific number of times in a given ::RSS feed. If a feed has too many occurrences of one of these tags, a TooMuchTagError will be raised.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(tag, parent) ⇒ TooMuchTagError

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 113

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

Instance Attribute Details

#parent (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 112

attr_reader :tag, :parent

#tag (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 112

attr_reader :tag, :parent