Sha256: 155802b6ea8af00bc2c9cadaba85639593fc84a5b34b973f1439e7b17ddaa858

Contents?: true

Size: 432 Bytes

Versions: 18

Compression:

Stored size: 432 Bytes

Contents

# -*- encoding : utf-8 -*-
module Dao
  class Conducer
    CallbackSupport = proc do
      include Wrap

      class << self
        def method_missing(method, *args, &block)
          case method.to_s
            when %r/\A(before|after)_(.*)\Z/
              lifecycle, method = $1, $2
              send(lifecycle, method, *args, &block)
            else
              super
          end
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dao-8.0.1 lib/dao/conducer/callback_support.rb
dao-8.0.0 lib/dao/conducer/callback_support.rb
dao-7.0.0 lib/dao/conducer/callback_support.rb
dao-5.6.1 lib/dao/conducer/callback_support.rb
dao-5.5.2 lib/dao/conducer/callback_support.rb
dao-5.5.1 lib/dao/conducer/callback_support.rb
dao-5.5.0 lib/dao/conducer/callback_support.rb
dao-5.4.0 lib/dao/conducer/callback_support.rb
dao-5.3.3 lib/dao/conducer/callback_support.rb
dao-5.3.2 lib/dao/conducer/callback_support.rb
dao-5.3.0 lib/dao/conducer/callback_support.rb
dao-5.2.1 lib/dao/conducer/callback_support.rb
dao-5.1.2 lib/dao/conducer/callback_support.rb
dao-5.1.1 lib/dao/conducer/callback_support.rb
dao-5.0.0 lib/dao/conducer/callback_support.rb
dao-4.6.4 lib/dao/conducer/callback_support.rb
dao-4.4.4 lib/dao/conducer/callback_support.rb
dao-4.4.2 lib/dao/conducer/callback_support.rb