OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
ruby
/
2.5.0
/
psych
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
class_loader.rb
1.91 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
coder.rb
2.05 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
core_ext.rb
359 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
exception.rb
264 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
handler.rb
7.19 KB
05/15/2023 11:41:43 AM
rw-r--r--
📁
handlers
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📁
json
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📁
nodes
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
nodes.rb
2.35 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
omap.rb
75 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
parser.rb
1.67 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
scalar_scanner.rb
4.24 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
set.rb
74 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
stream.rb
923 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
streaming.rb
667 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
syntax_error.rb
585 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
tree_builder.rb
2.98 KB
05/15/2023 11:41:43 AM
rw-r--r--
📄
versions.rb
186 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📁
visitors
-
05/09/2024 07:14:11 AM
rwxr-xr-x
📄
visitors.rb
236 bytes
05/15/2023 11:41:43 AM
rw-r--r--
📄
y.rb
190 bytes
05/15/2023 11:41:43 AM
rw-r--r--
Editing: parser.rb
Close
# frozen_string_literal: true module Psych ### # YAML event parser class. This class parses a YAML document and calls # events on the handler that is passed to the constructor. The events can # be used for things such as constructing a YAML AST or deserializing YAML # documents. It can even be fed back to Psych::Emitter to emit the same # document that was parsed. # # See Psych::Handler for documentation on the events that Psych::Parser emits. # # Here is an example that prints out ever scalar found in a YAML document: # # # Handler for detecting scalar values # class ScalarHandler < Psych::Handler # def scalar value, anchor, tag, plain, quoted, style # puts value # end # end # # parser = Psych::Parser.new(ScalarHandler.new) # parser.parse(yaml_document) # # Here is an example that feeds the parser back in to Psych::Emitter. The # YAML document is read from STDIN and written back out to STDERR: # # parser = Psych::Parser.new(Psych::Emitter.new($stderr)) # parser.parse($stdin) # # Psych uses Psych::Parser in combination with Psych::TreeBuilder to # construct an AST of the parsed YAML document. class Parser class Mark < Struct.new(:index, :line, :column) end # The handler on which events will be called attr_accessor :handler # Set the encoding for this parser to +encoding+ attr_writer :external_encoding ### # Creates a new Psych::Parser instance with +handler+. YAML events will # be called on +handler+. See Psych::Parser for more details. def initialize handler = Handler.new @handler = handler @external_encoding = ANY end end end