Advertisement
Guest User

Untitled

a guest
Jan 9th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. data = Psych.parser.parse("---\nfoo: \n bar: baz\n qux: quux")
  2. #<Psych::Parser:0x007fd84089fa60
  3. @handler=#<Psych::TreeBuilder:0x007fd84089fab0
  4. @stack=[],
  5. @last=nil,
  6. @root=#<Psych::Nodes::Stream:0x007fd84089f9e8 @children=[
  7. #<Psych::Nodes::Document:0x007fd84089f948 @children=[
  8. #<Psych::Nodes::Mapping:0x007fd84089f8f8 @children=[
  9. #<Psych::Nodes::Scalar:0x007fd84089f880 @value="foo", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
  10. #<Psych::Nodes::Mapping:0x007fd84089f858 @children=[
  11. #<Psych::Nodes::Scalar:0x007fd84089f7e0 @value="bar", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
  12. #<Psych::Nodes::Scalar:0x007fd84089f790 @value="baz", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
  13. #<Psych::Nodes::Scalar:0x007fd84089f740 @value="qux", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>,
  14. #<Psych::Nodes::Scalar:0x007fd84089f6f0 @value="quux", @anchor=nil, @tag=nil, @plain=true, @quoted=false, @style=1>
  15. ], @anchor=nil, @tag=nil, @implicit=true, @style=1>], @anchor=nil, @tag=nil, @implicit=true, @style=1>
  16. ], @version=[], @tag_directives=[], @implicit=false, @implicit_end=true>
  17. ], @encoding=1>>, @external_encoding=0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement