Module: HttpStub::Configurer::InstanceMethods
- Defined in:
- lib/http_stub/configurer.rb
Constant Summary collapse
- DELEGATE_METHODS =
%w{ stub_activator stub! stub_response! activate! activate_stub! server_has_started! reset! clear_activators! clear! clear_stubs! }
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
102 103 104 105 106 107 108 109 110 |
# File 'lib/http_stub/configurer.rb', line 102 def self.included(mod) DELEGATE_METHODS.each do |method_name| mod.class_eval <<-METHOD_DEF def #{method_name}(*args) self.class.#{method_name}(*args) end METHOD_DEF end end |