>>>>> "H" == Holden Glova <dsafari / paradise.net.nz> writes:

H> module ROS
H> module Persistable

 It really depend on what you want to do


pigeon% cat b.rb
#!/usr/bin/ruby
module ROS
   module Persistable

      def initialize
         # I want these variables to be instance vars.
         @is_persistent = false
         @timestamp     = nil
      end
   end
end

class A
   include ROS::Persistable

   def initialize
      @a = 12
      super
   end
end

p A.new
pigeon% 

pigeon% b.rb
#<A:0x401b09a0 @is_persistent=false, @a=12, @timestamp=nil>
pigeon% 



Guy Decoux