Method: String#simple_formatted
- Defined in:
- lib/openc3/core_ext/string.rb
#simple_formatted ⇒ Object
Displays a String containing binary data in a human readable format by converting each byte to the hex representation. Simply formatted as a single string of bytes
144 145 146 147 148 149 150 |
# File 'lib/openc3/core_ext/string.rb', line 144 def simple_formatted string = '' self.each_byte do |byte| string << sprintf("%02X", byte) end string end |