Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/parse_stream-c.ri
Arrière
U:RDoc::AnyMethod[iI"parse_stream:EFI"Psych::parse_stream;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"GParse a YAML string in +yaml+. Returns the Psych::Nodes::Stream. ;TI"IThis method can handle multiple YAML documents contained in +yaml+. ;TI"L+filename+ is used in the exception message if a Psych::SyntaxError is ;TI"raised.;To:RDoc::Markup::BlankLine o; ; [I"OIf a block is given, a Psych::Nodes::Document node will be yielded to the ;TI" block as it's being parsed.;T@o; ; [I"FRaises a Psych::SyntaxError when a YAML syntax error is detected.;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"MPsych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00> ;TI" ;TI"2Psych.parse_stream("--- a\n--- b") do |node| ;TI"0 node # => #<Psych::Nodes::Document:0x00> ;TI" end ;TI" ;TI"begin ;TI"/ Psych.parse_stream("--- `", "file.txt") ;TI"%rescue Psych::SyntaxError => ex ;TI"" ex.file # => 'file.txt' ;TI"Q ex.message # => "(file.txt): found character that cannot start any token" ;TI" end ;T:@format0o; ; [I":See Psych::Nodes for more information about YAML AST.;T: @fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below000[ I"#(yaml, filename = nil, &block);T@-FI" Psych;FcRDoc::NormalModule00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages