Module: top_level_module::DeepCover::ExecCallbacks

Defined in:
lib/deep_cover/core_ext/exec_callbacks.rb

Overview

rubocop:disable Naming/ClassAndModuleCamelCase

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.callbacksObject (readonly)

Returns the value of attribute callbacks.



15
16
17
# File 'lib/deep_cover/core_ext/exec_callbacks.rb', line 15

def callbacks
  @callbacks
end

Class Method Details

.before_exec(&block) ⇒ Object



17
18
19
# File 'lib/deep_cover/core_ext/exec_callbacks.rb', line 17

def before_exec(&block)
  (@callbacks ||= []) << block
end