lib/rscons/environment.rb in rscons-0.2.0 vs lib/rscons/environment.rb in rscons-0.2.1
- old
+ new
@@ -48,10 +48,10 @@
# construction variables, and builders. It will not contain a copy of the
# targets, build hooks, build directories, or the build root. If a block
# 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
env.append(@varset.clone)
env.append(variables)