module FFI::DataConverter
def from_native(value, ctx)
def from_native(value, ctx) value end
def native_type(type = nil)
-
(NotImplementedError)
- This method must be overriden.
Overloads:
-
native_type
-
native_type(type)
Returns:
-
(Type)
-
Parameters:
-
type
(String, Symbol, Type
) --
def native_type(type = nil) if type @native_type = FFI.find_type(type) else native_type = @native_type unless native_type raise NotImplementedError, 'native_type method not overridden and no native_type set' end native_type end end
def to_native(value, ctx)
def to_native(value, ctx) value end