Nokogiri::EncodingHandler

class Nokogiri::EncodingHandler

Parent:
Object

Public Class Methods

Nokogiri::EncodingHandler.[](name) Show source

Get the encoding handler for name

static VALUE get(VALUE klass, VALUE key)
{
  xmlCharEncodingHandlerPtr handler;

  handler = xmlFindCharEncodingHandler(StringValueCStr(key));
  if(handler)
    return Data_Wrap_Struct(klass, NULL, NULL, handler);

  return Qnil;
}