class Build::Environment

def flatten_to_hash(hash)

We fold in the ancestors one at a time from oldest to youngest.
def flatten_to_hash(hash)
	if parent = @parent
		parent = parent.flatten_to_hash(hash)
	end
	
	if @update
		self.dup(parent: parent).update!.update_hash(hash)
	else
		self.update_hash(hash)
	end
end