class CBOR::Diagnostic

Overview

Reads a CBOR input into a diagnostic string. This consumes the IO and is mostly useful to tests again the example provided in the RFC and ensuring a correct functioning of the CBOR::Lexer.

Defined in:

cbor/diagnostic.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

to_cbor(io : IO)
to_cbor(encoder : CBOR::Encoder)
to_cbor : Bytes
to_cbor

Class methods inherited from class Object

from_cbor(string_or_io) from_cbor

Constructor Detail

def self.new(input) #

[View source]

Class Method Detail

def self.to_s(bytes : Bytes) : String #

[View source]

Instance Method Detail

def to_s : String #

Reads the content of the IO and prints out a diagnostic string represation of the input.


[View source]