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

- (Object) init(x = nil)



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

def init(x=nil)
  1
end

- (Object) trans(the_state, x = nil)



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

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