lib/bmg/operator/rename.rb in bmg-0.2.0 vs lib/bmg/operator/rename.rb in bmg-0.3.0
- old
+ new
@@ -14,13 +14,21 @@
# attributes of the input tuples.
#
class Rename
include Operator
- def initialize(operand, renaming)
+ def initialize(type, operand, renaming)
+ @type = type
@operand = operand
@renaming = renaming
end
+ attr_reader :type
+
+ private
+
+ attr_reader :operand, :renaming
+
+ public
def each
@operand.each do |tuple|
yield rename(tuple)
end