Class: SOAP::Mapping::Mapping
Class Method Summary collapse
Class Method Details
.protect_threadvars(*symbols) ⇒ Object
528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/soap/mapping/mapping.rb', line 528 def protect_threadvars(*symbols) backup = {} begin symbols.each do |sym| backup[sym] = Thread.current[sym] end yield ensure symbols.each do |sym| Thread.current[sym] = backup[sym] end end end |