Exception: RSS::TooMuchTagError

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (TooMuchTagError) initialize(tag, parent)

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

- (Object) parent (readonly)

Returns the value of attribute parent



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

def parent
  @parent
end

- (Object) tag (readonly)

Returns the value of attribute tag



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

def tag
  @tag
end