Class: Bud::Count

Inherits:
Agg
  • Object
show all
Defined in:
lib/bud/aggs.rb

Overview

:nodoc: all

Instance Method Summary collapse

Methods inherited from Agg

#final

Instance Method Details

#init(x = nil) ⇒ Object



161
162
163
# File 'lib/bud/aggs.rb', line 161

def init(x=nil)
  1
end

#trans(the_state, x = nil) ⇒ Object



164
165
166
# File 'lib/bud/aggs.rb', line 164

def trans(the_state, x=nil)
  return the_state + 1, nil
end