File: callback.rb

package info (click to toggle)
libsequel-core-ruby 1.5.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 648 kB
  • ctags: 840
  • sloc: ruby: 10,949; makefile: 36
file content (17 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Sequel
  class Dataset
    # Module with empty methods that can be
    # override to provide callback behavior
    module Callback
      private
        # This is run inside .all, after all
        # of the records have been loaded
        # via .each, but before any block passed
        # to all is called.  It is called with
        # a single argument, an array of all
        # returned records.
        def post_load(all_records)
        end
    end
  end
end