OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
psych
/
nodes
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
alias.rb
494 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
document.rb
1.78 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
mapping.rb
1.51 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
node.rb
1.57 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
scalar.rb
1.6 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
sequence.rb
2 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
stream.rb
995 bytes
05/15/2023 11:41:43 AM
rw-r--r--
Editing: stream.rb
Close
# 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 end end end