Sha256: f51144d638d742e3ec06f929e94f6bb059ce6d61e5be032b4d280b9f7fc7d16c
Contents?: true
Size: 299 Bytes
Versions: 16
Compression:
Stored size: 299 Bytes
Contents
module Deferring class DeferredCallbackListener < Struct.new(:event_name, :callee, :callback) [:before_link, :before_unlink, :after_link, :after_unlink].each do |event_name| define_method(event_name) do |record| callee.public_send(callback, record) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems