Exception: RSS::NotExpectedTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::NotExpectedTagError
- Defined in:
- lib/rss/rss.rb
Instance Attribute Summary (collapse)
-
- (Object) parent
readonly
Returns the value of attribute parent.
-
- (Object) tag
readonly
Returns the value of attribute tag.
-
- (Object) uri
readonly
Returns the value of attribute uri.
Instance Method Summary (collapse)
-
- (NotExpectedTagError) initialize(tag, uri, parent)
constructor
A new instance of NotExpectedTagError.
Constructor Details
- (NotExpectedTagError) initialize(tag, uri, parent)
A new instance of NotExpectedTagError
107 108 109 110 |
# File 'lib/rss/rss.rb', line 107 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
- (Object) parent (readonly)
Returns the value of attribute parent
106 107 108 |
# File 'lib/rss/rss.rb', line 106 def parent @parent end |
- (Object) tag (readonly)
Returns the value of attribute tag
106 107 108 |
# File 'lib/rss/rss.rb', line 106 def tag @tag end |
- (Object) uri (readonly)
Returns the value of attribute uri
106 107 108 |
# File 'lib/rss/rss.rb', line 106 def uri @uri end |