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.



67
68
69
70
# File 'lib/rss/rss.rb', line 67

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.



66
67
68
# File 'lib/rss/rss.rb', line 66

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



66
67
68
# File 'lib/rss/rss.rb', line 66

def tag
  @tag
end