module HttpStub::Configurator::ClassMethods
Public Instance Methods
parts=(parts)
click to toggle source
# 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()
click to toggle source
# File lib/http_stub/configurator.rb, line 29 def state @state ||= HttpStub::Configurator::State.new end
stub_server()
click to toggle source
# File lib/http_stub/configurator.rb, line 33 def stub_server @stub_server ||= HttpStub::Configurator::Server.new(state) end