From e5ca8776a90add644c39858e9cb47f57209168dd Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 19 Feb 2014 15:02:18 -0500 Subject: [PATCH] allow nil to be passed in to Environment#build_root= --- lib/rscons/environment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index a2c4cc1..48027f0 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -15,7 +15,8 @@ module Rscons # String or +nil+ attr_reader :build_root def build_root=(build_root) - @build_root = build_root.gsub('\\', '/') + @build_root = build_root + @build_root.gsub!('\\', '/') if @build_root end # Create an Environment object.