403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.147.79.11
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/substitution_expression.rb
require 'hocon/impl'


class Hocon::Impl::SubstitutionExpression

  def initialize(path, optional)
    @path = path
    @optional = optional
  end
  attr_reader :path, :optional

  def change_path(new_path)
    if new_path == @path
      self
    else
      Hocon::Impl::SubstitutionExpression.new(new_path, @optional)
    end
  end

  def to_s
    "${#{@optional ? "?" : ""}#{@path.render}}"
  end

  def ==(other)
    if other.is_a? Hocon::Impl::SubstitutionExpression
      other.path == @path && other.optional == @optional
    else
      false
    end
  end

  def hash
    h = 41 * (41 + @path.hash)
    h = 41 * (h + (optional ? 1 : 0))

    h
  end
end

Youez - 2016 - github.com/yon3zu
LinuXploit