Module: Kernel

Defined in:
lib/unsafe.rb

Instance Method Summary collapse

Instance Method Details

#unsafeObject



10
11
12
13
14
15
16
# File 'lib/unsafe.rb', line 10

def unsafe
  was_unsafe = Thread.current[:__unsafe]
  Thread.current[:__unsafe] = true
  ret = yield
  Thread.current[:__unsafe] = was_unsafe
  ret
end