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.



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

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