Class: Bud::Choose

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

Overview

:nodoc: all

Instance Method Summary collapse

Methods inherited from ArgExemplary

#final

Methods inherited from Agg

#final, #init

Instance Method Details

#tie(the_state, val) ⇒ Object



107
108
109
# File 'lib/bud/aggs.rb', line 107

def tie(the_state, val)
  false
end

#trans(the_state, val) ⇒ Object



100
101
102
103
104
105
106
# File 'lib/bud/aggs.rb', line 100

def trans(the_state, val)
  if the_state.nil?
    return val, :replace
  else
    return the_state, :ignore
  end
end