Current File : //proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/REXML/Attribute/new-c.yaml |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: "Constructor. FIXME: The parser doesn't catch illegal characters in attributes"
- !ruby/object:SM::Flow::LIST
contents:
- !ruby/struct:SM::Flow::LI
label: "first:"
body: "Either: an Attribute, which this new attribute will become a clone of; or a String, which is the name of this attribute"
- !ruby/struct:SM::Flow::LI
label: "second:"
body: If <tt>first</tt> is an Attribute, then this may be an Element, or nil. If nil, then the Element parent of this attribute is the parent of the <tt>first</tt> Attribute. If the first argument is a String, then this must also be a String, and is the content of the attribute. If this is the content, it must be fully normalized (contain no illegal characters).
- !ruby/struct:SM::Flow::LI
label: "parent:"
body: Ignored unless <tt>first</tt> is a String; otherwise, may be the Element parent of this attribute, or nil.
type: :NOTE
- !ruby/struct:SM::Flow::VERB
body: " Attribute.new( attribute_to_clone )\n Attribute.new( attribute_to_clone, parent_element )\n Attribute.new( "attr", "attr_value" )\n Attribute.new( "attr", "attr_value", parent_element )\n"
full_name: REXML::Attribute::new
is_singleton: true
name: new
params: ( first, second=nil, parent=nil )
visibility: public