Class: Rack::PactBroker::ConfigurableMakeItLater
- Inherits:
-
Object
- Object
- Rack::PactBroker::ConfigurableMakeItLater
- Defined in:
- lib/rack/pact_broker/configurable_make_it_later.rb
Instance Method Summary collapse
-
#initialize(default_clazz) ⇒ ConfigurableMakeItLater
constructor
A new instance of ConfigurableMakeItLater.
- #make_it_later(clazz) ⇒ Object
- #new(*args, &block) ⇒ Object
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 |