Class: Amalgalite::ProgressHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/amalgalite/progress_handler.rb

Overview

A base class for use in creating your own progress handler classes

Instance Method Summary collapse

Instance Method Details

#arity ⇒ Object

the arity of the call method



11
# File 'lib/amalgalite/progress_handler.rb', line 11

def arity() 0 ; end

#call ⇒ Object

Override this method, returning false if the SQLite should act as if interrupt! had been invoked.

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/amalgalite/progress_handler.rb', line 17

def call
  raise NotImplementedError, "The progress handler call() method must be implemented"
end

#to_proc ⇒ Object



6
7
8
# File 'lib/amalgalite/progress_handler.rb', line 6

def to_proc
  self
end