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



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

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

#to_iObject



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

def to_i
  pointer.get_pointer(0).to_i
end