Method: Mechanize::PluggableParser#xml=

Defined in:
lib/mechanize/pluggable_parsers.rb

#xml=(klass) ⇒ Object

Registers klass as the parser for text/xml content



156
157
158
159
160
# File 'lib/mechanize/pluggable_parsers.rb', line 156

def xml=(klass)
  CONTENT_TYPES[:xml].each do |content_type|
    register_parser content_type, klass
  end
end