method

new

v2_1_10 - Show latest stable - Class: REXML::Source
new(arg, encoding=nil)
public

Constructor @param arg must be a String, and should be a valid XML document @param encoding if non-null, sets the encoding of the source to this value, overriding all encoding detection