lib/bmg/algebra.rb in bmg-0.18.0 vs lib/bmg/algebra.rb in bmg-0.18.1

- old
+ new

@@ -172,9 +172,10 @@ end protected :_summarize def transform(transformation = nil, options = {}, &proc) transformation, options = proc, (transformation || {}) unless proc.nil? + return self if transformation.is_a?(Hash) && transformation.empty? _transform(self.type.transform(transformation, options), transformation, options) end def _transform(type, transformation, options) Operator::Transform.new(type, self, transformation, options)