Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
REXML
/
Entity
/
//opt/alt/ruby21/share/ri/2.1.0/system/REXML/Entity/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"REXML::Entity::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"KCreate a new entity. Simple entities can be constructed by passing a ;TI"Jname, value to the constructor; this creates a generic, plain entity ;TI"Lreference. For anything more complicated, you have to pass a Source to ;TI"Nthe constructor with the entity definition, or use the accessor methods. ;TI"N+WARNING+: There is no validation of entity state except when the entity ;TI"Lis read from a stream. If you start poking around with the accessors, ;TI"Myou can easily create a non-conformant Entity. The best thing to do is ;TI"4dump the stupid DTDs and use XMLSchema instead.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"!e = Entity.new( 'amp', '&' );T:@format0: @fileI"lib/rexml/entity.rb;T:0@omit_headings_from_table_of_contents_below000[ I"5(stream, value=nil, parent=nil, reference=false);T@TI"Entity;TcRDoc::NormalClass00