Exception: RSS::TooMuchTagError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, parent) ⇒ TooMuchTagError

Returns a new instance of TooMuchTagError.



83
84
85
86
# File 'lib/rss/rss.rb', line 83

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.



82
83
84
# File 'lib/rss/rss.rb', line 82

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



82
83
84
# File 'lib/rss/rss.rb', line 82

def tag
  @tag
end