Module Config
In: i486-linux/rbconfig.rb

This file was created by mkconfig.rb when ruby was built. Any changes made to this file will be lost the next time ruby is built.

Methods

expand  

Constants

TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/i486-linux")
DESTDIR = '' unless defined? DESTDIR
CONFIG = {}
MAKEFILE_CONFIG = {}

Public Class methods

[Source]

     # File i486-linux/rbconfig.rb, line 148
148:   def Config::expand(val, config = CONFIG)
149:     val.gsub!(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) do |var|
150:       if !(v = $1 || $2)
151:         '$'
152:       elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
153:         pat, sub = $1, $2
154:         config[v] = false
155:         Config::expand(key, config)
156:         config[v] = key
157:         key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
158:         key
159:       else
160:         var
161:       end
162:     end
163:     val
164:   end

Search

Google

Ruby API Docs

Links