Module: RubyHome::TLV::Bytes
Instance Method Summary collapse
Instance Method Details
#pack(input) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ruby_home/tlv/bytes.rb', line 6 def pack(input) if input.length.odd? input.insert(0, '0') else input end end |
#unpack(input) ⇒ Object
14 15 16 |
# File 'lib/ruby_home/tlv/bytes.rb', line 14 def unpack(input) input end |