Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/alt/ruby33/share/gems/gems/psych-5.1.2/lib/psych/nodes//stream.rb
# frozen_string_literal: true
module Psych
module Nodes
###
# Represents a YAML stream. This is the root node for any YAML parse
# tree. This node must have one or more child nodes. The only valid
# child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
class Stream < Psych::Nodes::Node
# Encodings supported by Psych (and libyaml)
# Any encoding
ANY = Psych::Parser::ANY
# UTF-8 encoding
UTF8 = Psych::Parser::UTF8
# UTF-16LE encoding
UTF16LE = Psych::Parser::UTF16LE
# UTF-16BE encoding
UTF16BE = Psych::Parser::UTF16BE
# The encoding used for this stream
attr_accessor :encoding
###
# Create a new Psych::Nodes::Stream node with an +encoding+ that
# defaults to Psych::Nodes::Stream::UTF8.
#
# See also Psych::Handler#start_stream
def initialize encoding = UTF8
super()
@encoding = encoding
end
def stream?; true; end
end
end
end
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 13 2025 08:35:31 | root / linksafe | 0755 | |
| | | | | |
alias.rb | 0.511 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
document.rb | 1.813 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
mapping.rb | 1.54 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
node.rb | 1.915 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
scalar.rb | 1.629 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
sequence.rb | 2.032 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
stream.rb | 1.001 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |