Sha256: 6366af48886b6c3917ef6f5f5ba7659d7c3f99fc013ec7cb0215239a6f9d7914

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze
  class Response < ::Rack::Response
    class << self

      # get the current response out of Thread.current[:response]
      #
      # You can call this from everywhere with Ramaze::Response.current

      def current
        Thread.current[:response]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ramaze-0.1.2 lib/ramaze/trinity/response.rb
ramaze-0.1.1 lib/ramaze/trinity/response.rb
ramaze-0.1.3 lib/ramaze/trinity/response.rb