allow nil to be passed in to Environment#build_root=
This commit is contained in:
parent
2dde39a0ec
commit
e5ca8776a9
@ -15,7 +15,8 @@ module Rscons
|
|||||||
# String or +nil+
|
# String or +nil+
|
||||||
attr_reader :build_root
|
attr_reader :build_root
|
||||||
def build_root=(build_root)
|
def build_root=(build_root)
|
||||||
@build_root = build_root.gsub('\\', '/')
|
@build_root = build_root
|
||||||
|
@build_root.gsub!('\\', '/') if @build_root
|
||||||
end
|
end
|
||||||
|
|
||||||
# Create an Environment object.
|
# Create an Environment object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user