Class: RabbitMQ::FFI::Boolean Private
- Inherits:
-
Object
- Object
- RabbitMQ::FFI::Boolean
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/rabbitmq/ffi.rb
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.
Class Method Summary collapse
- .from_native(val, ctx) ⇒ Object private
- .to_native(val, ctx) ⇒ Object private
Class Method Details
.from_native(val, ctx) ⇒ Object
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.
72 |
# File 'lib/rabbitmq/ffi.rb', line 72 def self.from_native val, ctx; val != 0; end |
.to_native(val, ctx) ⇒ Object
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.
71 |
# File 'lib/rabbitmq/ffi.rb', line 71 def self.to_native val, ctx; val ? 1 : 0; end |