123456789_123456789_123456789_123456789_123456789_

Exception: RSS::MissingTagError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InvalidRSSError, Error, StandardError
Instance Chain:
self, InvalidRSSError, Error, StandardError
Inherits: RSS::InvalidRSSError
Defined in: lib/rss/rss.rb

Overview

Since RSS is based on XML, it must have opening and closing tags that match. If they don’t, a MissingTagError will be raised.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(tag, parent) ⇒ MissingTagError

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 102

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

Instance Attribute Details

#parent (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 101

attr_reader :tag, :parent

#tag (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 101

attr_reader :tag, :parent