Class: Shifty::DSL::BatchContext

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/shifty/dsl.rb

Instance Method Summary collapse

Instance Method Details

#batch_complete?(value, collection) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
62
# File 'lib/shifty/dsl.rb', line 59

def batch_complete?(value, collection)
  value.nil? ||
    !!batch_full.call(value, collection)
end