Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/rmodbus/ext.rb
Instance Method Summary collapse
-
#to_word ⇒ Object
Shortcut or turning an integer into a word.
Instance Method Details
#to_word ⇒ Object
Shortcut or turning an integer into a word
28 29 30 |
# File 'lib/rmodbus/ext.rb', line 28 def to_word [self].pack('n') end |