Class: CBOR::Streaming::CallbackSimplifier Private
- Inherits:
-
Struct
- Object
- Struct
- CBOR::Streaming::CallbackSimplifier
- 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
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#callback_set ⇒ LibCBOR::CborCallbacks
private
Returns the appropriate callback set targeting #target.
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target
5 6 7 |
# File 'lib/libcbor/streaming/callback_simplifier.rb', line 5 def target @target end |
Instance Method Details
#callback_set ⇒ LibCBOR::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.
10 11 12 |
# File 'lib/libcbor/streaming/callback_simplifier.rb', line 10 def callback_set @cset ||= build_callback_set end |