On Wed, Apr 4, 2012 at 11:17 PM, Tridib Bandopadhyay <lists / ruby-forum.com> wrote: > How to use with self? Well, apparently you wrote methods #defin and #alloc in class Myalloc::MyClass - maybe even in C. So only you know how they associate state with self. If you use Ruby's standard mechanisms (i.e. instance variables) there should be any number of examples in source code which access via state. Other than that, if you associate state with an instance in a custom way only you can know how to access it. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/