Class: TC_Integration_Aggregate::AccumulateAggregator2

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



321
322
323
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 321

def finalize
  @sum
end

#step(a, b) ⇒ Object



316
317
318
319
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 316

def step(a, b)
  @sum ||= 1
  @sum *= (a.to_i + b.to_i)
end