--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Constructor - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "arg:" body: if not supplied, will be set to the default value. If a String, the name of this object will be set to the argument. If an Element, the object will be shallowly cloned; name, attributes, and namespaces will be copied. Children will not be copied. - !ruby/struct:SM::Flow::LI label: "parent:" body: if supplied, must be a Parent, and will be used as the parent of this object. - !ruby/struct:SM::Flow::LI label: "context:" body: "If supplied, must be a hash containing context items. Context items include:" type: :NOTE - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "*" body: :respect_whitespace the value of this is :all or an array of strings being the names of the elements to respect whitespace for. Defaults to :all. - !ruby/struct:SM::Flow::LI label: "*" body: :compress_whitespace the value can be :all or an array of strings being the names of the elements to ignore whitespace on. Overrides :respect_whitespace. - !ruby/struct:SM::Flow::LI label: "*" body: :ignore_whitespace_nodes the value can be :all or an array of strings being the names of the elements in which to ignore whitespace-only nodes. If this is set, Text nodes which contain only whitespace will not be added to the document tree. - !ruby/struct:SM::Flow::LI label: "*" body: :raw can be :all, or an array of strings being the names of the elements to process in raw mode. In raw mode, special characters in text is not converted to or from entities. type: :BULLET full_name: REXML::Element::new is_singleton: true name: new params: ( arg = UNDEFINED, parent=nil, context=nil ) visibility: public