From 23c94f784171edcb6014ba372cb15154a257a186 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 11 Sep 2014 13:53:10 -0400 Subject: [PATCH] fix YARD curly brace escapes --- lib/rscons/environment.rb | 2 +- lib/rscons/varset.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 031013e..218d124 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -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 diff --git a/lib/rscons/varset.rb b/lib/rscons/varset.rb index 0f9eee8..3c617b9 100644 --- a/lib/rscons/varset.rb +++ b/lib/rscons/varset.rb @@ -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 =~ /^(.*)\$\{([^}]+)\}(.*)$/