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

#init(x) ⇒ Object



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

def init(x)
  [x].to_set
end

#trans(the_state, val) ⇒ Object



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

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