Module: RLTK::CG::BindingClass

Overview

This module provides access to stored FFI::Pointer objects and allows a class to be passed directly into FFI methods. It also provides a pointer comparison method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ptrFFI::Pointer Also known as: to_ptr

Returns:

  • (FFI::Pointer)


36
37
38
# File 'lib/rltk/cg/bindings.rb', line 36

def ptr
  @ptr
end

Instance Method Details

#==(other) ⇒ Boolean

Compares one BindingClass object to another.

Parameters:

  • other (BindingClass)

    Another BindingClass object to compare to.

Returns:

  • (Boolean)


44
45
46
# File 'lib/rltk/cg/bindings.rb', line 44

def ==(other)
	self.class == other.class and @ptr == other.ptr
end