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

- old
+ new

@@ -37,9 +37,15 @@ return super unless on.is_a?(Hash) renaming = Hash[on.map{|k,v| [v,k] }] self.image(right.rename(renaming), as, on.keys, options) end + def images(rights, on = [], options = {}) + rights.each_pair.inject(self){|memo,(as,right)| + memo.image(right, as, on, options) + } + end + def join(right, on = []) return super unless on.is_a?(Hash) renaming = Hash[on.map{|k,v| [v,k] }] self.join(right.rename(renaming), on.keys) end