Sha256: 28e56c37872c909190b63b9a351aa78815d66c545f92ba1742347d69d03b78a0

Contents?: true

Size: 1.66 KB

Versions: 63

Compression:

Stored size: 1.66 KB

Contents

# The module storing Ruby interpreter configurations on building.
#
# This file was created by mkconfig.rb when ruby was built.  It contains build
# information for ruby which is used e.g. by mkmf to build compatible native
# extensions.  Any changes made to this file will be lost the next time ruby is
# built.
#
module RbConfig
  # expands variable with given `val` value.
  #
  #     RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin
  #
  def self.expand: (String val, ?Hash[String, String] config) -> String

  def self.fire_update!: (String key, String val, ?Hash[String, String] mkconf, ?Hash[String, String] conf) -> Array[String]?

  def self.ruby: () -> String
end

# The hash configurations stored.
#
RbConfig::CONFIG: Hash[String, String]

# DESTDIR on make install.
#
RbConfig::DESTDIR: String

# Almost same with CONFIG. MAKEFILE_CONFIG has other variable reference like
# below.
#
#     MAKEFILE_CONFIG["bindir"] = "$(exec_prefix)/bin"
#
# The values of this constant is used for creating Makefile.
#
#     require 'rbconfig'
#
#     print <<-END_OF_MAKEFILE
#     prefix = #{Config::MAKEFILE_CONFIG['prefix']}
#     exec_prefix = #{Config::MAKEFILE_CONFIG['exec_prefix']}
#     bindir = #{Config::MAKEFILE_CONFIG['bindir']}
#     END_OF_MAKEFILE
#
#     => prefix = /usr/local
#        exec_prefix = $(prefix)
#        bindir = $(exec_prefix)/bin  MAKEFILE_CONFIG = {}
#
# RbConfig.expand is used for resolving references like above in rbconfig.
#
#     require 'rbconfig'
#     p Config.expand(Config::MAKEFILE_CONFIG["bindir"])
#     # => "/usr/local/bin"
#
RbConfig::MAKEFILE_CONFIG: Hash[String, String]

# Ruby installed directory.
#
RbConfig::TOPDIR: String

Version data entries

63 entries across 63 versions & 2 rubygems

Version Path
rbs-0.17.0 core/rb_config.rbs
rbs-0.16.0 core/rb_config.rbs
rbs-0.15.0 stdlib/builtin/rb_config.rbs
rbs-0.14.0 stdlib/builtin/rb_config.rbs
rbs-0.13.1 stdlib/builtin/rb_config.rbs
rbs-0.13.0 stdlib/builtin/rb_config.rbs
rbs-0.12.2 stdlib/builtin/rb_config.rbs
rbs-0.12.1 stdlib/builtin/rb_config.rbs
rbs-0.12.0 stdlib/builtin/rb_config.rbs
rbs-0.11.0 stdlib/builtin/rb_config.rbs
rbs-0.10.0 stdlib/builtin/rb_config.rbs
rbs-0.9.1 stdlib/builtin/rb_config.rbs
rbs-0.9.0 stdlib/builtin/rb_config.rbs
rbs-0.8.0 stdlib/builtin/rb_config.rbs
rbs-0.7.0 stdlib/builtin/rb_config.rbs
rbs-0.6.0 stdlib/builtin/rb_config.rbs
rbs-0.5.0 stdlib/builtin/rb_config.rbs
rbs-0.4.0 stdlib/builtin/rb_config.rbs
rbs-0.3.1 stdlib/builtin/rb_config.rbs
rbs-0.3.0 stdlib/builtin/rb_config.rbs