Class: Bud::Max

Inherits:
ArgExemplary show all
Defined in:
lib/bud/aggs.rb

Overview

:nodoc: all

Instance Method Summary (collapse)

Methods inherited from ArgExemplary

#final, #tie

Methods inherited from Agg

#final, #init

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