From d5be569cd50df6d7933f84b569d2d3abd1387ae1 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 11 Nov 2013 11:35:59 -0500 Subject: [PATCH] fix Environment#clone() to allow subclassing --- lib/rscons/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rscons/environment.rb b/lib/rscons/environment.rb index 48f803f..d1ee802 100644 --- a/lib/rscons/environment.rb +++ b/lib/rscons/environment.rb @@ -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