class Integer

Public Instance Methods

to_word() click to toggle source

Shortcut or turning an integer into a word

# File lib/rmodbus/ext.rb, line 28
def to_word
  [self].pack('n')
end