static public Method

Parser.default_parser=(new_value)

Set @@default_parser to new_value if it is one of the available parsers. Else raise NotValidXMLParser error.

Source Code

# File rss/parser.rb, line 65
def default_parser=(new_value)
  if AVAILABLE_PARSERS.include?(new_value)
    @@default_parser = new_value
  else
    raise NotValidXMLParser.new(new_value)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.