Class: Sbmt::Pact::Configuration
- Inherits:
-
Object
- Object
- Sbmt::Pact::Configuration
- Defined in:
- lib/sbmt/pact/configuration.rb
Defined Under Namespace
Classes: GlobalProviderConfigurationError
Instance Attribute Summary collapse
-
#after_provider_state_proc ⇒ Object
readonly
Returns the value of attribute after_provider_state_proc.
-
#before_provider_state_proc ⇒ Object
readonly
Returns the value of attribute before_provider_state_proc.
Instance Method Summary collapse
Instance Attribute Details
#after_provider_state_proc ⇒ Object (readonly)
Returns the value of attribute after_provider_state_proc.
6 7 8 |
# File 'lib/sbmt/pact/configuration.rb', line 6 def after_provider_state_proc @after_provider_state_proc end |
#before_provider_state_proc ⇒ Object (readonly)
Returns the value of attribute before_provider_state_proc.
6 7 8 |
# File 'lib/sbmt/pact/configuration.rb', line 6 def before_provider_state_proc @before_provider_state_proc end |
Instance Method Details
#after_provider_state_teardown(&block) ⇒ Object
16 17 18 19 20 |
# File 'lib/sbmt/pact/configuration.rb', line 16 def after_provider_state_teardown(&block) raise GlobalProviderConfigurationError, "no block given" unless block @after_provider_state_proc = block end |
#before_provider_state_setup(&block) ⇒ Object
10 11 12 13 14 |
# File 'lib/sbmt/pact/configuration.rb', line 10 def before_provider_state_setup(&block) raise GlobalProviderConfigurationError, "no block given" unless block @before_provider_state_proc = block end |