Method: Stir::Base::Response::ClassMethods#response

Defined in:
lib/stir/base/response.rb

#response(response_name, &block) ⇒ Object



10
11
12
# File 'lib/stir/base/response.rb', line 10

def response(response_name, &block)
  define_method(response_name.to_sym) { |*args| instance_exec(*args, &block) }
end