From 7edcef2b30f2c8be3355e9374df3c9b634b2730e Mon Sep 17 00:00:00 2001 From: "michael.metivier" Date: Fri, 2 Nov 2018 08:52:23 -0400 Subject: [PATCH] Environment.expand_varref has the same allowed parameter types and returns as Varset.expand_varref --- lib/rscons/environment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 4586f87..633a732 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -386,12 +386,12 @@ module Rscons # Expand a construction variable reference. # - # @param varref [Array, String] Variable reference to expand. + # @param varref [nil, String, Array, Proc, Symbol, TrueClass, FalseClass] Variable reference to expand. # @param extra_vars [Hash, VarSet] # Extra variables to use in addition to (or replace) the Environment's # construction variables when expanding the variable reference. # - # @return [Array, String] Expansion of the variable reference. + # @return [nil, String, Array, Symbol, TrueClass, FalseClass] Expansion of the variable reference. def expand_varref(varref, extra_vars = nil) vars = if extra_vars.nil? @varset