Module: RubyHome::HAP::HexPad
- Defined in:
- lib/ruby_home/hap/hex_pad.rb
Class Method Summary collapse
Class Method Details
.pad(input, pad_length: 24) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ruby_home/hap/hex_pad.rb', line 4 def self.pad(input, pad_length: 24) [ input .unpack1('H*') .rjust(pad_length, '0') ].pack('H*') end |