Exception: RSS::NotExpectedTagError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, uri, parent) ⇒ NotExpectedTagError

Returns a new instance of NotExpectedTagError.



106
107
108
109
# File 'lib/rss/rss.rb', line 106

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

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



105
106
107
# File 'lib/rss/rss.rb', line 105

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



105
106
107
# File 'lib/rss/rss.rb', line 105

def tag
  @tag
end

#uriObject (readonly)

Returns the value of attribute uri.



105
106
107
# File 'lib/rss/rss.rb', line 105

def uri
  @uri
end