Class: Pact::Provider::Configuration::ServiceProviderConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/provider/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(&app_block) ⇒ ServiceProviderConfig

Returns a new instance of ServiceProviderConfig.



43
44
45
# File 'lib/pact/provider/configuration.rb', line 43

def initialize &app_block
  @app_block = app_block
end

Instance Method Details

#appObject



47
48
49
# File 'lib/pact/provider/configuration.rb', line 47

def app
  @app_block.call
end