Class: CBOR_DIAG::App_h
- Inherits:
-
Object
- Object
- CBOR_DIAG::App_h
- Defined in:
- lib/cbor-diagnostic-app/h.rb
Overview
mockup only; needs parser!
Class Method Summary collapse
Class Method Details
.decode(_, s) ⇒ Object
4 5 6 |
# File 'lib/cbor-diagnostic-app/h.rb', line 4 def self.decode(_, s) s.gsub(/#.*|\s|\/[^\/]*\//, "").chars.each_slice(2).map{ |x| Integer(x.join, 16).chr("BINARY") }.join end |