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

View File

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