Module: CBOR_DIAG::StringPart2

Defined in:
lib/cbor-diag-parser.rb

Instance Method Summary collapse

Instance Method Details

#partvalObject



1115
1116
1117
1118
# File 'lib/cbor-diag-parser.rb', line 1115

def partval
  v = s.text_value
  {"b" => "\b", "f" => "\f", "n" => "\n", "r" => "\r", "t" => "\t"}[v] || v
end