lib/isolator.rb
# Accepts block and enable Isolator within
Accepts block and enable Isolator within
Accepts block and enable Isolator within
def enable
      return yield if enabled?
      res = nil
      begin
        enable!
        res = yield
      ensure
        disable!
      end
      res
    end
def enable return yield if enabled? res = nil begin enable! res = yield ensure disable! end res end
Accepts block and enable Isolator within
Accepts block and enable Isolator within