allow nil to be passed in to Environment#build_root=

This commit is contained in:
Josh Holtrop 2014-02-19 15:02:18 -05:00
parent 2dde39a0ec
commit e5ca8776a9

View File

@ -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.