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