fix Environment#clone() to allow subclassing
This commit is contained in:
parent
4d7ed373e7
commit
d5be569cd5
@ -50,7 +50,7 @@ module Rscons
|
|||||||
# is given, the Environment object is yielded to the block and when the
|
# is given, the Environment object is yielded to the block and when the
|
||||||
# block returns, the {#process} method is automatically called.
|
# block returns, the {#process} method is automatically called.
|
||||||
def clone(variables = {})
|
def clone(variables = {})
|
||||||
env = Environment.new()
|
env = self.class.new
|
||||||
@builders.each do |builder_name, builder|
|
@builders.each do |builder_name, builder|
|
||||||
env.add_builder(builder)
|
env.add_builder(builder)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user