fix YARD curly brace escapes

This commit is contained in:
Josh Holtrop 2014-09-11 13:53:10 -04:00
parent 6acb209ef4
commit 23c94f7841
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ module Rscons
# contains a collection of construction variables, options, builders, and
# rules for building targets.
class Environment
# @return [Hash] Set of \{"builder_name" => builder_object} pairs.
# @return [Hash] Set of !{"builder_name" => builder_object} pairs.
attr_reader :builders
# :command, :short, or :off

View File

@ -83,7 +83,7 @@ module Rscons
end
alias_method :clone, :merge
# Replace "$\{var}" variable references in varref with the expanded
# Replace "$!{var}" variable references in varref with the expanded
# variables' values, recursively.
#
# @param varref [nil, String, Array, Proc]
@ -92,7 +92,7 @@ module Rscons
# Arguments to pass to any lambda variable values to be expanded.
#
# @return [nil, String, Array]
# Expanded value with "$\{var}" variable references replaced.
# Expanded value with "$!{var}" variable references replaced.
def expand_varref(varref, lambda_args)
if varref.is_a?(String)
if varref =~ /^(.*)\$\{([^}]+)\}(.*)$/