Class: Bud::Max
- Inherits:
-
ArgExemplary
- Object
- Agg
- ArgExemplary
- Bud::Max
- Defined in:
- lib/bud/aggs.rb
Overview
:nodoc: all
Instance Method Summary (collapse)
Methods inherited from ArgExemplary
Methods inherited from Agg
Instance Method Details
- (Object) trans(the_state, val)
55 56 57 58 59 60 61 62 63 |
# File 'lib/bud/aggs.rb', line 55 def trans(the_state, val) if (the_state <=> val) > 0 return the_state, :ignore elsif the_state == val return the_state, :keep else return val, :replace end end |