fix Environment#clone() to allow subclassing

This commit is contained in:
Josh Holtrop 2013-11-11 11:35:59 -05:00
parent 4d7ed373e7
commit d5be569cd5

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