Module: RLTK::CG::BindingClass
- Included in:
- Builder, Context, ExecutionEngine, GenericValue, MemoryBuffer, Module, PassManager, Target, TargetData, TargetMachine, Triple, Type, Value
- Defined in:
- lib/rltk/cg/bindings.rb
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
- #ptr ⇒ FFI::Pointer (also: #to_ptr)
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Compares one BindingClass object to another.
Instance Attribute Details
#ptr ⇒ FFI::Pointer Also known as: to_ptr
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.
38 39 40 |
# File 'lib/rltk/cg/bindings.rb', line 38 def ==(other) self.class == other.class and @ptr == other.ptr end |