method
new
v1_8_6_287 -
Show latest stable
- Class:
REXML::Comment
new( first, second = nil )public
Constructor. The first argument can be one of three types: @param first If <a href="/ruby/String">String,</a> the contents of this comment are set to the argument. If Comment, the argument is duplicated. If <a href="/ruby/REXML/Source">Source,</a> the argument is scanned for a comment. @param second If the first argument is a Source, this argument should be nil, not supplied, or a Parent to be set as the parent of this object