class RubyBreaker::Runtime::MonitorSwitch

This class is a switch to turn on and off the type monitoring system. It is important to turn off the monitor once the process is inside the monitor; otherwise, it WILL fall into an infinite loop.

Attributes

switch[RW]

Public Class Methods

new() click to toggle source
# File lib/rubybreaker/runtime/monitor.rb, line 188
def initialize(); @switch = true end

Public Instance Methods

set_to(mode) click to toggle source
# File lib/rubybreaker/runtime/monitor.rb, line 200
def set_to(mode); @switch = mode; end
turn_off() click to toggle source
# File lib/rubybreaker/runtime/monitor.rb, line 195
def turn_off(); 
  RubyBreaker.log("Switch turned off")
  @switch = false; 
end
turn_on() click to toggle source
# File lib/rubybreaker/runtime/monitor.rb, line 190
def turn_on();
  RubyBreaker.log("Switch turned on")
  @switch = true; 
end