Sha256: 27ca7451c8f46c3f69d5be52b2039e7f06e9d66b080023e31c8cd3fc5a63df7a

Contents?: true

Size: 467 Bytes

Versions: 83

Compression:

Stored size: 467 Bytes

Contents

module Amalgalite
  ##
  # A base class for use in creating your own progress handler classes
  #
  class ProgressHandler
    def to_proc
      self
    end

    # the arity of the call method
    def arity() 0 ; end

    ##
    # Override this method, returning +false+ if the SQLite should act as if
    # +interrupt!+ had been invoked.
    # 
    def call
      raise NotImplementedError, "The progress handler call() method must be implemented"
    end
  end
end

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
amalgalite-1.9.4-x64-mingw-ucrt lib/amalgalite/progress_handler.rb
amalgalite-1.9.4-x86-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.4-x64-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.4 lib/amalgalite/progress_handler.rb
amalgalite-1.9.1-x86-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.1-x64-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.1-x64-mingw-ucrt lib/amalgalite/progress_handler.rb
amalgalite-1.9.1 lib/amalgalite/progress_handler.rb
amalgalite-1.9.0-x64-mingw-ucrt lib/amalgalite/progress_handler.rb
amalgalite-1.9.0-x86-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.0-x64-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.9.0 lib/amalgalite/progress_handler.rb
amalgalite-1.8.0-x64-mingw-ucrt lib/amalgalite/progress_handler.rb
amalgalite-1.8.0-x64-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.8.0-x86-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.8.0 lib/amalgalite/progress_handler.rb
amalgalite-1.7.0-x86-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.7.0-x64-mingw32 lib/amalgalite/progress_handler.rb
amalgalite-1.7.0 lib/amalgalite/progress_handler.rb
amalgalite-1.6.3-x86-mingw32 lib/amalgalite/progress_handler.rb