123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::ExecutionWrapper::RunHook

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

Instance Attribute Details

#hook (rw)

[ GitHub ]

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

RunHook = Struct.new(:hook)

Instance Method Details

#before(target)

[ GitHub ]

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

def before(target)
  hook_state = target.send(:hook_state)
  hook_state[hook] = hook.run
end