Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = Psych.parser.parse("---\nfoo: \n bar: baz\n qux: quux")
- #<Psych::Parser:0x007fd84089fa60
- @handler=#<Psych::TreeBuilder:0x007fd84089fab0
- @stack=[],
- @last=nil,
- @root=#<Psych::Nodes::Stream:0x007fd84089f9e8 @children=[
- #<Psych::Nodes::Document:0x007fd84089f948 @children=[
- #<Psych::Nodes::Mapping:0x007fd84089f8f8 @children=[
- #<Psych::Nodes::Scalar:0x007fd84089f880 @value="foo", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
- #<Psych::Nodes::Mapping:0x007fd84089f858 @children=[
- #<Psych::Nodes::Scalar:0x007fd84089f7e0 @value="bar", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
- #<Psych::Nodes::Scalar:0x007fd84089f790 @value="baz", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
- #<Psych::Nodes::Scalar:0x007fd84089f740 @value="qux", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
- #<Psych::Nodes::Scalar:0x007fd84089f6f0 @value="quux", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>
- ], @anchor=nil, @tag=nil, @implicit=true, @style=1>], @anchor=nil, @tag=nil, @implicit=true, @style=1>
- ], @version=[], @tag_directives=[], @implicit=false, @implicit_end=true>
- ], @encoding=1>>, @external_encoding=0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement