instance method around

Ruby on Rails 4.2.9

Since v4.1.16 Last seen in v4.2.9

Available in: v4.1.16 v4.2.9

Signature

around(&around)

No documentation comment.

Parameters

around block
Source
# File activesupport/lib/active_support/callbacks.rb, line 495
      def around(&around)
        CallbackSequence.new do |*args|
          around.call(*args) {
            self.call(*args)
          }
        end
      end

Defined in activesupport/lib/active_support/callbacks.rb line 495 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Callbacks::CallbackSequence

Type at least 2 characters to search.

↑↓ navigate · open · esc close