Sha256: 8fcd110b766da910ffa58ae17ce58cb43968759ef3b8274cdde123f453af4c0e

Contents?: true

Size: 369 Bytes

Versions: 13

Compression:

Stored size: 369 Bytes

Contents

class Thread
  def push_resugan_context(namespace = '')
    if !@resugan_context
      @resugan_context_stack = []
    end

    @resugan_context = Resugan::Context.new(namespace)
    @resugan_context_stack << @resugan_context
  end

  def pop_resugan_context
    @resugan_context = @resugan_context_stack.pop
  end

  def resugan_context
    @resugan_context
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
resugan-0.1.13 lib/resugan/thread.rb
resugan-0.1.12 lib/resugan/thread.rb
resugan-0.1.11 lib/resugan/thread.rb
resugan-0.1.10 lib/resugan/thread.rb
resugan-0.1.9 lib/resugan/thread.rb
resugan-0.1.8 lib/resugan/thread.rb
resugan-0.1.7 lib/resugan/thread.rb
resugan-0.1.6 lib/resugan/thread.rb
resugan-0.1.5 lib/resugan/thread.rb
resugan-0.1.4 lib/resugan/thread.rb
resugan-0.1.2 lib/resugan/thread.rb
resugan-0.1.1 lib/resugan/thread.rb
resugan-0.1.0 lib/resugan/thread.rb