# File lib/autobuild/loaders/config-interpolator.rb, line 90 def each_interpolation(value) return value if (!value.respond_to?(:to_str) || value.empty?) # Special case: if 'value' is *only* an interpolation, avoid # conversion to string if match = WholeMatch.match(value) return yield($1 || $2) end return value.gsub(PartialMatch) { |match| varname = $1 || $2 yield(varname) } end