Server IP : 111.118.215.189 / Your IP : 216.73.216.153 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
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