Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/rmodbus/client.rb
Instance Method Summary collapse
Instance Method Details
#to_bytes ⇒ Object
52 53 54 |
# File 'lib/rmodbus/client.rb', line 52 def to_bytes (self >> 8).chr + (self & 0xff).chr end |