Method: Modbus::ProtocolData#shift_byte

Defined in:
lib/modbus/connection/protocol_data.rb

#shift_byteInteger

Shifts one bytes off the from front of the array.

Returns:

  • (Integer)

    The shifted byte.



51
52
53
54
# File 'lib/modbus/connection/protocol_data.rb', line 51

def shift_byte
  # self.shift
  self.slice!(0,1).first
end