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
-
.callbacks ⇒ Object
readonly
Returns the value of attribute callbacks.
Class Method Summary collapse
Class Attribute Details
.callbacks ⇒ Object (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 |