Class: CBOR::Streaming::CallbackSimplifier Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/libcbor/streaming/callback_simplifier.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Abstracts aways callback specifics, such as integer width

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#targetObject

Returns the value of attribute target

Returns:

  • the current value of target



5
6
7
# File 'lib/libcbor/streaming/callback_simplifier.rb', line 5

def target
  @target
end

Instance Method Details

#callback_setLibCBOR::CborCallbacks

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the appropriate callback set targeting #target. Cached for the give instance.

Returns:

  • Callback set that enables forwarding

API:

  • private



10
11
12
# File 'lib/libcbor/streaming/callback_simplifier.rb', line 10

def callback_set
  @cset ||= build_callback_set
end