$80 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby23/lib64/ruby/2.3.0/psych/

HOME
Current File : /opt/alt/ruby23/lib64/ruby/2.3.0/psych//deprecated.rb
# frozen_string_literal: false
require 'date'

module Psych
  DEPRECATED = __FILE__ # :nodoc:

  module DeprecatedMethods # :nodoc:
    attr_accessor :taguri
    attr_accessor :to_yaml_style
  end

  def self.quick_emit thing, opts = {}, &block # :nodoc:
    warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
    target = eval 'self', block.binding
    target.extend DeprecatedMethods
    metaclass = class << target; self; end
    metaclass.send(:define_method, :encode_with) do |coder|
      target.taguri        = coder.tag
      target.to_yaml_style = coder.style
      block.call coder
    end
    target.psych_to_yaml unless opts[:nodump]
  end

  # This method is deprecated, use Psych.load_stream instead.
  def self.load_documents yaml, &block
    if $VERBOSE
      warn "#{caller[0]}: load_documents is deprecated, use load_stream"
    end
    list = load_stream yaml
    return list unless block_given?
    list.each(&block)
  end

  def self.detect_implicit thing
    warn "#{caller[0]}: detect_implicit is deprecated" if $VERBOSE
    return '' unless String === thing
    return 'null' if '' == thing
    ss = ScalarScanner.new(ClassLoader.new)
    ss.tokenize(thing).class.name.downcase
  end

  def self.add_ruby_type type_tag, &block
    warn "#{caller[0]}: add_ruby_type is deprecated, use add_domain_type" if $VERBOSE
    domain = 'ruby.yaml.org,2002'
    key = ['tag', domain, type_tag].join ':'
    @domain_types[key] = [key, block]
  end

  def self.add_private_type type_tag, &block
    warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
    domain = 'x-private'
    key = [domain, type_tag].join ':'
    @domain_types[key] = [key, block]
  end

  def self.tagurize thing
    warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
    return thing unless String === thing
    "tag:yaml.org,2002:#{thing}"
  end

  def self.read_type_class type, reference
    warn "#{caller[0]}: read_type_class is deprecated" if $VERBOSE
    _, _, type, name = type.split ':', 4

    reference = name.split('::').inject(reference) do |k,n|
      k.const_get(n.to_sym)
    end if name
    [type, reference]
  end

  def self.object_maker klass, hash
    warn "#{caller[0]}: object_maker is deprecated" if $VERBOSE
    klass.allocate.tap do |obj|
      hash.each { |k,v| obj.instance_variable_set(:"@#{k}", v) }
    end
  end
end

class Object
  undef :to_yaml_properties rescue nil
  def to_yaml_properties # :nodoc:
    instance_variables
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.43 PM
root / root
0755
handlers
--
3 Mar 2024 10.43 PM
root / linksafe
0755
json
--
3 Mar 2024 10.43 PM
root / linksafe
0755
nodes
--
3 Mar 2024 10.43 PM
root / linksafe
0755
visitors
--
3 Mar 2024 10.43 PM
root / linksafe
0755
class_loader.rb
1.91 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
coder.rb
2.05 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
core_ext.rb
0.764 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
deprecated.rb
2.521 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
exception.rb
0.259 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
handler.rb
7.05 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
nodes.rb
2.355 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
omap.rb
0.074 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
parser.rb
1.672 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
scalar_scanner.rb
4.274 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
set.rb
0.073 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
stream.rb
0.902 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
streaming.rb
0.652 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
syntax_error.rb
0.572 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
tree_builder.rb
2.085 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
versions.rb
0.09 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
visitors.rb
0.231 KB
26 Jul 2023 2.39 PM
root / linksafe
0644
y.rb
0.187 KB
26 Jul 2023 2.39 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF