Module: CBOR::NilClassHelper

Defined in:
lib/libcbor/helpers.rb

Overview

Provides the #to_cbor (or equivalent) method for nil

Instance Method Summary collapse

Instance Method Details

#__libcbor_to_cborString

Encodes nils.

Returns:

  • (String)

    The CBOR representation



141
142
143
# File 'lib/libcbor/helpers.rb', line 141

def __libcbor_to_cbor
	Cache.nil
end