123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::ExecutionWrapper::CompleteHook

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Struct
Instance Chain:
self, ::Struct
Inherits: Struct
Defined in: activesupport/lib/active_support/execution_wrapper.rb

Instance Attribute Summary

Instance Method Summary

::Struct - Inherited

Instance Attribute Details

#hook (rw)

[ GitHub ]

  
# File 'activesupport/lib/active_support/execution_wrapper.rb', line 32

CompleteHook = Struct.new(:hook)

Instance Method Details

#after(target)

Alias for #before.

[ GitHub ]

  
# File 'activesupport/lib/active_support/execution_wrapper.rb', line 39

alias after before

#before(target) Also known as: #after

[ GitHub ]

  
# File 'activesupport/lib/active_support/execution_wrapper.rb', line 33

def before(target)
  hook_state = target.send(:hook_state)
  if hook_state.key?(hook)
    hook.complete hook_state[hook]
  end
end