Class: FFI::Tcl::ObjType

Inherits:
PrettyStruct show all
Defined in:
lib/ffi-tk/ffi/tcl/obj.rb

Overview

The following structure represents a type of object, which is a particular internal representation for an object plus a set of functions that provide standard operations on objects of that type.

Constant Summary

Constants inherited from PrettyStruct

PrettyStruct::ACCESSOR_CODE

Instance Method Summary collapse

Methods inherited from PrettyStruct

layout

Instance Method Details

#inspectObject



42
43
44
# File 'lib/ffi-tk/ffi/tcl/obj.rb', line 42

def inspect
  '#<ObjType name=%p>' % [self[:name]]
end

#to_iObject



38
39
40
# File 'lib/ffi-tk/ffi/tcl/obj.rb', line 38

def to_i
  pointer.get_pointer(0).to_i
end