Module: HttpStub::Configurator::ClassMethods
- Defined in:
- lib/http_stub/configurator.rb
Instance Method Summary collapse
Instance Method Details
#parts=(parts) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/http_stub/configurator.rb', line 37 def parts=(parts) parts.each do |name, part| part.apply_to(self) self.define_singleton_method(name) { part } self.send(:define_method, name) { part } end end |
#state ⇒ Object
29 30 31 |
# File 'lib/http_stub/configurator.rb', line 29 def state @state ||= HttpStub::Configurator::State.new end |
#stub_server ⇒ Object
33 34 35 |
# File 'lib/http_stub/configurator.rb', line 33 def stub_server @stub_server ||= HttpStub::Configurator::Server.new(state) end |