File: C:/Ruby27-x64/share/ri/2.7.0/system/Psych/parse_stream-c.ri
U:RDoc::AnyMethod[iI"parse_stream:ETI"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"9 Psych.parse_stream("--- `", filename: "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"0Raises a TypeError when NilClass is passed.;T@o;
; [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, legacy_filename = NOT_GIVEN, filename: nil, &block);T@0FI"
Psych;TcRDoc::NormalModule00