Class: TC_Integration_Aggregate::AggregateHandler
- Inherits:
-
Object
- Object
- TC_Integration_Aggregate::AggregateHandler
- 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
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.arity ⇒ Object
227 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 227 def arity; 1; end |
.name ⇒ Object
229 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 229 def name; "multiply"; end |
Instance Method Details
#finalize(ctx) ⇒ Object
235 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 235 def finalize(ctx); ctx.result = ctx[:buffer]; end |
#step(ctx, a) ⇒ Object
231 232 233 234 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 231 def step(ctx, a) ctx[:buffer] ||= 1 ctx[:buffer] *= a.to_i end |