Module: Flows::SharedContextPipeline::DSL::Callbacks Private

Includes:
Util::InheritableSingletonVars::DupStrategy.make_module( '@before_all_callbacks' => [], '@after_all_callbacks' => [], '@before_each_callbacks' => [], '@after_each_callbacks' => [] )
Included in:
Flows::SharedContextPipeline::DSL
Defined in:
lib/flows/shared_context_pipeline/dsl/callbacks.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

Constant Summary collapse

SingletonVarsSetup =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0

Flows::Util::InheritableSingletonVars::DupStrategy.make_module(
  '@before_all_callbacks' => [],
  '@after_all_callbacks' => [],
  '@before_each_callbacks' => [],
  '@after_each_callbacks' => []
)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_all_callbacksObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



15
16
17
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 15

def after_all_callbacks
  @after_all_callbacks
end

#after_each_callbacksObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



15
16
17
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 15

def after_each_callbacks
  @after_each_callbacks
end

#before_all_callbacksObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



15
16
17
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 15

def before_all_callbacks
  @before_all_callbacks
end

#before_each_callbacksObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



15
16
17
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 15

def before_each_callbacks
  @before_each_callbacks
end

Instance Method Details

#after_all(&callback) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



21
22
23
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 21

def after_all(&callback)
  after_all_callbacks << callback
end

#after_each(&callback) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



29
30
31
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 29

def after_each(&callback)
  after_each_callbacks << callback
end

#before_all(&callback) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



17
18
19
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 17

def before_all(&callback)
  before_all_callbacks << callback
end

#before_each(&callback) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.4.0



25
26
27
# File 'lib/flows/shared_context_pipeline/dsl/callbacks.rb', line 25

def before_each(&callback)
  before_each_callbacks << callback
end