Class: Rack::PactBroker::ConfigurableMakeItLater

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/pact_broker/configurable_make_it_later.rb

Instance Method Summary collapse

Constructor Details

#initialize(default_clazz) ⇒ ConfigurableMakeItLater

Returns a new instance of ConfigurableMakeItLater.



11
12
13
# File 'lib/rack/pact_broker/configurable_make_it_later.rb', line 11

def initialize default_clazz
  @clazz = default_clazz
end

Instance Method Details

#make_it_later(clazz) ⇒ Object



15
16
17
# File 'lib/rack/pact_broker/configurable_make_it_later.rb', line 15

def make_it_later clazz
  @clazz = clazz
end

#new(*args, &block) ⇒ Object



19
20
21
# File 'lib/rack/pact_broker/configurable_make_it_later.rb', line 19

def new *args, &block
  @clazz.new(*args, &block)
end