This represents a YAML
Document
. This node must be a child of Psych::Nodes::Stream
. A Psych::Nodes::Document
must have one child, and that child may be one of the following:
implicit[RW]
Was this document implicitly created?
implicit_end[RW]
Is the end of the document implicit?
tag_directives[RW]
A list of tag directives for this document
version[RW]
The version of the YAML
document
new(version = [], tag_directives = [], implicit = false) click to toggle source
Create a new Psych::Nodes::Document
object.
version
is a list indicating the YAML
version. tags_directives
is a list of tag directive declarations implicit
is a flag indicating whether the document will be implicitly started.
This creates a YAML
document object that represents a YAML
1.1 document with one tag directive, and has an implicit start:
Psych::Nodes::Document.new( [1,1], [["!", "tag:tenderlovemaking.com,2009:"]], true )See Also¶ ↑
See also Psych::Handler#start_document
def initialize version = [], tag_directives = [], implicit = false super() @version = version @tag_directives = tag_directives @implicit = implicit @implicit_end = true endPublic Instance Methods
document?() click to toggle source
root() click to toggle source
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4