Exception: RSS::NotValidXMLParser

Inherits:
Error
  • Object
show all
Defined in:
lib/rss/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ NotValidXMLParser

Returns a new instance of NotValidXMLParser.



36
37
38
39
40
41
# File 'lib/rss/parser.rb', line 36

def initialize(parser)
  super("#{parser} is not an available XML parser. " <<
        "Available XML parser" <<
        (AVAILABLE_PARSERS.size > 1 ? "s are " : " is ") <<
        "#{AVAILABLE_PARSERS.inspect}.")
end