Methods
#
C
D
E
H
N
Attributes
[R] identifier
[R] kind
[R] method
[R] options
Class Public methods
new(kind, method, options = {})
# File activesupport/lib/active_support/callbacks.rb, line 133
def initialize(kind, method, options = {})
  @kind       = kind
  @method     = method
  @identifier = options[:identifier]
  @options    = options
end
Instance Public methods
==(other)
# File activesupport/lib/active_support/callbacks.rb, line 140
def ==(other)
  case other
  when Callback
    (self.identifier && self.identifier == other.identifier) || self.method == other.method
  else
    (self.identifier && self.identifier == other) || self.method == other
  end
end
call(*args, &block)
# File activesupport/lib/active_support/callbacks.rb, line 165
def call(*args, &block)
  evaluate_method(method, *args, &block) if should_run_callback?(*args)
rescue LocalJumpError
  raise ArgumentError,
    "Cannot yield from a Proc type filter. The Proc must take two " +
    "arguments and execute #call on the second argument."
end
dup()
# File activesupport/lib/active_support/callbacks.rb, line 153
def dup
  self.class.new(@kind, @method, @options.dup)
end
eql?(other)
# File activesupport/lib/active_support/callbacks.rb, line 149
def eql?(other)
  self == other
end
hash()
# File activesupport/lib/active_support/callbacks.rb, line 157
def hash
  if @identifier
    @identifier.hash
  else
    @method.hash
  end
end