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)


30
31
32
# File 'lib/rltk/cg/bindings.rb', line 30

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)


38
39
40
# File 'lib/rltk/cg/bindings.rb', line 38

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