Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/Parser/cdesc-Parser.ri
Arrière
U:RDoc::NormalClass[iI"Parser:ETI"Psych::Parser;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"KYAML event parser class. This class parses a YAML document and calls ;TI"Nevents on the handler that is passed to the constructor. The events can ;TI"Nbe used for things such as constructing a YAML AST or deserializing YAML ;TI"Ldocuments. It can even be fed back to Psych::Emitter to emit the same ;TI"document that was parsed.;To:RDoc::Markup::BlankLine o; ;[I"QSee Psych::Handler for documentation on the events that Psych::Parser emits.;T@o; ;[I"MHere is an example that prints out ever scalar found in a YAML document:;T@o:RDoc::Markup::Verbatim;[I"+# Handler for detecting scalar values ;TI"*class ScalarHandler < Psych::Handler ;TI"; def scalar value, anchor, tag, plain, quoted, style ;TI" puts value ;TI" end ;TI" end ;TI" ;TI"3parser = Psych::Parser.new(ScalarHandler.new) ;TI"!parser.parse(yaml_document) ;T:@format0o; ;[I"NHere is an example that feeds the parser back in to Psych::Emitter. The ;TI"EYAML document is read from STDIN and written back out to STDERR:;T@o;;[I"=parser = Psych::Parser.new(Psych::Emitter.new($stderr)) ;TI"parser.parse($stdin) ;T;0o; ;[I"HPsych uses Psych::Parser in combination with Psych::TreeBuilder to ;TI"2construct an AST of the parsed YAML document.;T: @fileI""ext/psych/lib/psych/parser.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[[ I"external_encoding;TI"W;T:publicFI""ext/psych/lib/psych/parser.rb;T[ I"handler;TI"RW;T;F@8[ [ [[I" class;T[[;[[I"new;T@8[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@3I" Psych;FcRDoc::NormalModule
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages