Exception: RSS::MissingTagError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, parent) ⇒ MissingTagError

Returns a new instance of MissingTagError.



59
60
61
62
# File 'lib/rss/rss.rb', line 59

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

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



58
59
60
# File 'lib/rss/rss.rb', line 58

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



58
59
60
# File 'lib/rss/rss.rb', line 58

def tag
  @tag
end