Sha256: a6bc7d24edf824ca3fffc5b97b31bef4e23cbaa366226a9fe0624403c7e728e3
Contents?: true
Size: 468 Bytes
Versions: 14
Compression:
Stored size: 468 Bytes
Contents
module Rack class Recorder def initialize(app) @_app = app @@filepath ||= begin puts "Yo. Starting app..." puts "Would ask you for a test name or recording path here." 'something' end end def call(env) code, headers, body = @_app.call(env) puts "OK, that was fun." puts "Would save some request and response data here." [ code, headers, body ] end end end
Version data entries
14 entries across 14 versions & 1 rubygems