lib/build/environment/flatten.rb in build-environment-1.4.0 vs lib/build/environment/flatten.rb in build-environment-1.5.0
- old
+ new
@@ -33,9 +33,13 @@
# Evaluate all the individual environment values so that they are flat:
Hash[hash.map{|key, value| [key, evaluator.object_value(value)]}]
end
+ def evaluator
+ Evaluator.new(self)
+ end
+
def evaluate(**options)
self.class.new(nil, self.to_h, **options)
end
def flatten(**options)