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, #name, #to_i

Constructor Details

This class inherits a constructor from Zerbo::Packet

Instance Method Details

#inspectObject



250
251
252
# File 'lib/zerbo.rb', line 250

def inspect
  format_inspect(to_b)
end

#to_bObject



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

def to_b
  !to_i.zero?
end