Class: Zerbo::BadSignal

Inherits:
Packet
  • Object
show all
Defined in:
lib/zerbo.rb

Instance Attribute Summary

Attributes inherited from Packet

#data, #owner, #sequence, #type

Instance Method Summary collapse

Methods inherited from Packet

#guess_length, inherited, #initialize, #to_i

Constructor Details

This class inherits a constructor from Zerbo::Packet

Instance Method Details

#inspectObject



246
247
248
# File 'lib/zerbo.rb', line 246

def inspect
  format_inspect(to_b)
end

#to_bObject



242
243
244
# File 'lib/zerbo.rb', line 242

def to_b
  !to_i.zero?
end