peek

peek(depth=0)
Instance Public methods

Peek at the depth event in the stack. The first element on the stack is at depth 0. If depth is -1, will parse to the end of the input stream and return the last event, which is always :end_document. Be aware that this causes the stream to be parsed up to the depth event, so you can effectively pre-parse the entire document (pull the entire thing into memory) using this method.

doc_ruby_on_rails
2015-05-07 04:14:33
Comments
Leave a Comment

Please login to continue.