D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
REXML
/
Element
/
Filename :
new-c.yaml
back
Copy
--- !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 <tt>not</tt> 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: <tt>:respect_whitespace</tt> the value of this is :<tt>all</tt> or an array of strings being the names of the elements to respect whitespace for. Defaults to :<tt>all</tt>. - !ruby/struct:SM::Flow::LI label: "*" body: <tt>:compress_whitespace</tt> the value can be :<tt>all</tt> or an array of strings being the names of the elements to ignore whitespace on. Overrides :<tt>respect_whitespace</tt>. - !ruby/struct:SM::Flow::LI label: "*" body: <tt>:ignore_whitespace_nodes</tt> the value can be :<tt>all</tt> 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: <tt>:raw</tt> can be :<tt>all</tt>, 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