Class: Bud::Accum

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)



196
197
198
# File 'lib/bud/aggs.rb', line 196

def init(x)
  [x].to_set
end

- (Object) trans(the_state, val)



199
200
201
202
# File 'lib/bud/aggs.rb', line 199

def trans(the_state, val)
  the_state << val
  return the_state, nil
end