Sha256: 5e39019003e49075acbef61e0155749ff2b3416a824ab95767740db159cd4643
Contents?: true
Size: 319 Bytes
Versions: 4
Compression:
Stored size: 319 Bytes
Contents
module Stir module Base module Response def self.included(base) base.extend(ClassMethods) end module ClassMethods def response(response_name, &block) define_method(response_name.to_sym) { |*args| instance_exec(*args, &block) } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stir-2.2.3 | lib/stir/base/response.rb |
stir-2.2.2 | lib/stir/base/response.rb |
stir-2.2.1 | lib/stir/base/response.rb |
stir-2.1.1 | lib/stir/base/response.rb |