HEX
Server: Apache
System: Linux cpanel91.fastsecurehost.com 3.10.0-962.3.2.lve1.5.87.el7.x86_64 #1 SMP Tue Jan 28 09:38:56 UTC 2025 x86_64
User: harmonyg (1050)
PHP: 8.2.29
Disabled: shell, shell_exec, exec, ini_alter, dl, show_source, passthru, system, eval, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
Upload Files
File: /home/harmonyg/ruby/lib/rbconfig/datadir.rb
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

module RbConfig

  ##
  # Return the path to the data directory associated with the given package
  # name.  Normally this is just
  # "#{RbConfig::CONFIG['datadir']}/#{package_name}", but may be modified by
  # packages like RubyGems to handle versioned data directories.

  def self.datadir(package_name)
    File.join(CONFIG['datadir'], package_name)
  end unless RbConfig.respond_to?(:datadir)

end