Permalink
Browse files

No reason to have accumulating reducer fail if it doesn't have new me…

…thods defined in subclass
  • Loading branch information...
1 parent fd06433 commit 43f7c603ef1579c1594ce566c618a26e1018cfa9 Philip (flip) Kromer committed Jan 28, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −0 .gitignore
  2. +0 −4 lib/wukong/streamer/accumulating_reducer.rb
View
@@ -13,6 +13,7 @@ REVISION
TAGS*
tmtags
*_flymake.*
+*_flymake
*.tmproj
.project
.settings
@@ -57,23 +57,19 @@ def process *args, &block
# start! is called on the the first record of the new key
#
def start! *args
- raise %Q{start! is the new reset! -- it has args now, namely the first
- record of the new key. It doesn\'t want #super either}
end
#
# Override this to accumulate each record for the given key in turn.
#
def accumulate *args, &block
- raise "override the accumulate method in your subclass"
end
#
#
# You must override this method.
#
def finalize
- raise "override the finalize method in your subclass"
end
# Finalize the last-seen group.

0 comments on commit 43f7c60

Please sign in to comment.