Class: TC_Integration_Aggregate::AccumulateAggregator

Inherits:
Object
  • Object
show all
Defined in:
lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb,
lib/sqlite3-1.5.3-x86_64-darwin/test/test_integration_aggregate.rb

Instance Method Summary collapse

Instance Method Details

#finalizeObject



310
311
312
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 310

def finalize
  @sum
end

#step(*args) ⇒ Object



305
306
307
308
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 305

def step(*args)
  @sum ||= 0
  args.each { |a| @sum += a.to_i }
end