fix Environment#clone() to allow subclassing

This commit is contained in:
josh committed 2013-11-11 11:35:59 -05:00
1 parent 4d7ed373e7
commit d5be569cd5
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ module Rscons
# is given, the Environment object is yielded to the block and when the
# block returns, the {#process} method is automatically called.
def clone(variables = {})
env = Environment.new()
env = self.class.new
@builders.each do |builder_name, builder|
env.add_builder(builder)
end