From: "Aaron D. Gifford" Date: 2011-04-15T07:33:45+09:00 Subject: Re: What do you do when you need to attach data to an object instance? On Thu, Apr 14, 2011 at 3:11 PM, Kevin Mahler wrote: > You probably wouldn't want OpenStructModule even if it did exist because > you wouldn't want NoMethodError to be suppressed. Perhaps you're looking > for Object#extend. > >  module UserId >    attr_accessor :user_id >  end >  thing = Object.new  # whatever the thing is >  thing.extend(UserId).user_id = 123456 >  p thing.user_id  #=>123456 Nice. Thank you! Aaron out.