Class: FFI::Tcl::Obj

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

Constant Summary

Constants inherited from PrettyStruct

PrettyStruct::ACCESSOR_CODE

Instance Method Summary collapse

Methods inherited from PrettyStruct

layout

Instance Method Details

#inspectObject



59
60
61
# File 'lib/ffi-tk/ffi/tcl/obj.rb', line 59

def inspect
  '#<Obj bytes=%p type=%p>' % [self[:bytes], pretty_type]
end

#pretty_typeObject



55
56
57
# File 'lib/ffi-tk/ffi/tcl/obj.rb', line 55

def pretty_type
  EvalResult::TYPES[type.to_i]
end