CAUTION: MT-unsafe
Classes & Modules
Constants
Name | Description | |
---|---|---|
EncodeCharRegexp | = Regexp.new("[#{EncodeMap.keys.join}]") | |
EncodeMap | = { '&' => '&', '<' => '<', '>' => '>', '"' => '"', '\'' => ''', "\r" => '
' |
Attributes
Name | Visibility | R/W | Description |
---|---|---|---|
charset | public | RW | |
default_encodingstyle | public | RW | |
generate_explicit_type | public | RW | |
use_numeric_character_reference | public | RW |
Methods
Class
Visibility | Signature |
---|---|
public | assign_ns (attrs, ns, namespace, tag = nil) |
public | new (opt = {}) |
Instance
Visibility | Signature |
---|---|
public | add_reftarget (name, node) |
public | element_local? (element) |
public | element_qualified? (element) |
public | encode_child (ns, child, parent) |
public | encode_data (ns, obj, parent) |
public | encode_element (ns, obj, parent) |
public | encode_name (ns, data, attrs) |
public | encode_name_end (ns, data) |
public | encode_rawstring (str) |
public | encode_string (str) |
public | encode_tag (elename, attrs = nil) |
public | encode_tag_end (elename, cr = nil) |
public | generate (obj, io = nil) |