Sha256: f1c2d669b0db19879a1c2fe630688441e7f583c414929eb68a5390f7adbfb2b4
Contents?: true
Size: 603 Bytes
Versions: 5
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module IIFinder module Callbacks extend ActiveSupport::Concern include ActiveSupport::Callbacks included do define_callbacks :call end def call run_callbacks :call do super end end class_methods do def before_call(*args, &block) set_callback(:call, :before, *args, &block) end def after_call(*args, &block) set_callback(:call, :after, *args, &block) end def around_call(*args, &block) set_callback(:call, :around, *args, &block) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems