Class: Bud::Min

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)



38
39
40
41
42
43
44
45
46
# File 'lib/bud/aggs.rb', line 38

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