Module: MIDICommunications::TypeConversion
- Extended by:
- TypeConversion
- Included in:
- TypeConversion
- Defined in:
- lib/midi-communications/type_conversion.rb
Overview
Utility for converting between different data formats
Instance Method Summary collapse
-
#numeric_byte_array_to_hex_string(bytes) ⇒ String
Convert an array of numeric bytes to string of hex bytes.
Instance Method Details
#numeric_byte_array_to_hex_string(bytes) ⇒ String
Convert an array of numeric bytes to string of hex bytes
10 11 12 |
# File 'lib/midi-communications/type_conversion.rb', line 10 def numeric_byte_array_to_hex_string(bytes) bytes.map { |b| b.to_s(16) }.join end |