Class: ProconBypassMan::Procon::Rumbler

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/procon/rumbler.rb

Class Method Summary collapse

Class Method Details

.binaryObject



15
16
17
# File 'lib/procon_bypass_man/procon/rumbler.rb', line 15

def self.binary
  ["100c00000000" + "00001010"].pack("H*")
end

.monitorObject



2
3
4
5
# File 'lib/procon_bypass_man/procon/rumbler.rb', line 2

def self.monitor
  @@must_rumble = false
  return yield
end

.must_rumble?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/procon_bypass_man/procon/rumbler.rb', line 11

def self.must_rumble?
  @@must_rumble
end

.rumble!Object



7
8
9
# File 'lib/procon_bypass_man/procon/rumbler.rb', line 7

def self.rumble!
  @@must_rumble = true
end