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)


62
63
64
65
# File 'lib/shifty/dsl.rb', line 62

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