GRAYBYTE WORDPRESS FILE MANAGER8799

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
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/ruby27/share/gems/gems/psych-3.1.0/lib/psych/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby27/share/gems/gems/psych-3.1.0/lib/psych//coder.rb
# frozen_string_literal: true
module Psych
  ###
  # If an object defines +encode_with+, then an instance of Psych::Coder will
  # be passed to the method when the object is being serialized.  The Coder
  # automatically assumes a Psych::Nodes::Mapping is being emitted.  Other
  # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
  # called, respectively.
  class Coder
    attr_accessor :tag, :style, :implicit, :object
    attr_reader   :type, :seq

    def initialize tag
      @map      = {}
      @seq      = []
      @implicit = false
      @type     = :map
      @tag      = tag
      @style    = Psych::Nodes::Mapping::BLOCK
      @scalar   = nil
      @object   = nil
    end

    def scalar *args
      if args.length > 0
        warn "#{caller[0]}: Coder#scalar(a,b,c) is deprecated" if $VERBOSE
        @tag, @scalar, _ = args
        @type = :scalar
      end
      @scalar
    end

    # Emit a map.  The coder will be yielded to the block.
    def map tag = @tag, style = @style
      @tag   = tag
      @style = style
      yield self if block_given?
      @map
    end

    # Emit a scalar with +value+ and +tag+
    def represent_scalar tag, value
      self.tag    = tag
      self.scalar = value
    end

    # Emit a sequence with +list+ and +tag+
    def represent_seq tag, list
      @tag = tag
      self.seq = list
    end

    # Emit a sequence with +map+ and +tag+
    def represent_map tag, map
      @tag = tag
      self.map = map
    end

    # Emit an arbitrary object +obj+ and +tag+
    def represent_object tag, obj
      @tag    = tag
      @type   = :object
      @object = obj
    end

    # Emit a scalar with +value+
    def scalar= value
      @type   = :scalar
      @scalar = value
    end

    # Emit a map with +value+
    def map= map
      @type = :map
      @map  = map
    end

    def []= k, v
      @type = :map
      @map[k] = v
    end
    alias :add :[]=

    def [] k
      @type = :map
      @map[k]
    end

    # Emit a sequence of +list+
    def seq= list
      @type = :seq
      @seq  = list
    end
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
handlers
--
March 03 2024 22:47:25
root / linksafe
0755
json
--
March 03 2024 22:47:25
root / linksafe
0755
nodes
--
March 03 2024 22:47:25
root / linksafe
0755
visitors
--
March 03 2024 22:47:25
root / linksafe
0755
class_loader.rb
1.909 KB
June 06 2023 14:54:34
root / linksafe
0644
coder.rb
2.049 KB
June 06 2023 14:54:34
root / linksafe
0644
core_ext.rb
0.351 KB
June 06 2023 14:54:34
root / linksafe
0644
exception.rb
0.258 KB
June 06 2023 14:54:34
root / linksafe
0644
handler.rb
7.195 KB
June 06 2023 14:54:34
root / linksafe
0644
nodes.rb
2.354 KB
June 06 2023 14:54:34
root / linksafe
0644
omap.rb
0.073 KB
June 06 2023 14:54:34
root / linksafe
0644
parser.rb
1.671 KB
June 06 2023 14:54:34
root / linksafe
0644
scalar_scanner.rb
4.136 KB
June 06 2023 14:54:34
root / linksafe
0644
set.rb
0.072 KB
June 06 2023 14:54:34
root / linksafe
0644
stream.rb
0.901 KB
June 06 2023 14:54:34
root / linksafe
0644
streaming.rb
0.651 KB
June 06 2023 14:54:34
root / linksafe
0644
syntax_error.rb
0.571 KB
June 06 2023 14:54:34
root / linksafe
0644
tree_builder.rb
2.983 KB
June 06 2023 14:54:34
root / linksafe
0644
versions.rb
0.217 KB
June 06 2023 14:54:34
root / linksafe
0644
visitors.rb
0.23 KB
June 06 2023 14:54:34
root / linksafe
0644
y.rb
0.186 KB
June 06 2023 14:54:34
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF