Module: CryptBufferConcern::PrettyPrint
- Included in:
- CryptBuffer
- Defined in:
- lib/crypto-toolbox/crypt_buffer/concerns/pretty_print.rb
Instance Method Summary collapse
Instance Method Details
#pp ⇒ Object
3 4 5 |
# File 'lib/crypto-toolbox/crypt_buffer/concerns/pretty_print.rb', line 3 def pp puts pretty_hexstring end |
#pretty_hexstring ⇒ Object
7 8 9 10 |
# File 'lib/crypto-toolbox/crypt_buffer/concerns/pretty_print.rb', line 7 def pretty_hexstring str = h.scan(/.{2}/).to_a.join(" ") "0x#{h.upcase} (#{str.upcase})" end |