From: Martin DeMello Date: 2002-05-06T05:52:59+09:00 Subject: Re: dynamically assigning instance variables ts wrote: > pigeon% cat hab.rb > module Hab > def biv(attributes) > attributes.each do |k, v| > type.send(:attr_accessor, k) > send("#{k}=", v) > end > end Ah! It suddenly clicked into place what type.send was doing. Very neat. -- Martin DeMello