GRAYBYTE WORDPRESS FILE MANAGER5395

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
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
Directory : /opt/alt/ruby33/share/gems/gems/psych-5.1.2/lib/psych/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby33/share/gems/gems/psych-5.1.2/lib/psych//parser.rb
# 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

    ###
    # call-seq:
    #    parser.parse(yaml)
    #
    # Parse the YAML document contained in +yaml+.  Events will be called on
    # the handler set on the parser instance.
    #
    # See Psych::Parser and Psych::Parser#handler

    def parse yaml, path = yaml.respond_to?(:path) ? yaml.path : "<unknown>"
      _native_parse @handler, yaml, path
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
handlers
--
May 13 2025 08:35:31
root / linksafe
0755
json
--
May 13 2025 08:35:31
root / linksafe
0755
nodes
--
May 13 2025 08:35:31
root / linksafe
0755
visitors
--
May 13 2025 08:35:31
root / linksafe
0755
class_loader.rb
2.01 KB
April 24 2025 07:57:44
root / linksafe
0644
coder.rb
2.049 KB
April 24 2025 07:57:44
root / linksafe
0644
core_ext.rb
0.354 KB
April 24 2025 07:57:44
root / linksafe
0644
exception.rb
0.709 KB
April 24 2025 07:57:44
root / linksafe
0644
handler.rb
7.196 KB
April 24 2025 07:57:44
root / linksafe
0644
nodes.rb
2.375 KB
April 24 2025 07:57:44
root / linksafe
0644
omap.rb
0.073 KB
April 24 2025 07:57:44
root / linksafe
0644
parser.rb
2.027 KB
April 24 2025 07:57:44
root / linksafe
0644
scalar_scanner.rb
4.687 KB
April 24 2025 07:57:44
root / linksafe
0644
set.rb
0.072 KB
April 24 2025 07:57:44
root / linksafe
0644
stream.rb
0.901 KB
April 24 2025 07:57:44
root / linksafe
0644
streaming.rb
0.651 KB
April 24 2025 07:57:44
root / linksafe
0644
syntax_error.rb
0.574 KB
April 24 2025 07:57:44
root / linksafe
0644
tree_builder.rb
3.02 KB
April 24 2025 07:57:44
root / linksafe
0644
versions.rb
0.183 KB
April 24 2025 07:57:44
root / linksafe
0644
visitors.rb
0.248 KB
April 24 2025 07:57:44
root / linksafe
0644
y.rb
0.186 KB
April 24 2025 07:57:44
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF