Module: Temple::Mixins::ThreadOptions
- Defined in:
- lib/temple/mixins/options.rb
Instance Method Summary collapse
Instance Method Details
#thread_options ⇒ Object
59 60 61 |
# File 'lib/temple/mixins/options.rb', line 59 def Thread.current[] end |
#with_options(options) ⇒ Object
51 52 53 54 55 56 57 |
# File 'lib/temple/mixins/options.rb', line 51 def () = Thread.current[] = ImmutableMap.new(, ) yield ensure Thread.current[] = end |