Hi,

I want to be able to do operations to a selection of objects, something lik=
e this:

class Config
  attr_accessor :name
end

class ConfigSelection

  def initialize(*configs)
    @configs =3D configs
  end

  def name=3D(n)
    @configs.each{|c| c.name =3D n}
  end
 =20
end

a =3D Config.new
a.name =3D "a"

b =3D Config.new
b.name =3D "b"

s =3D ConfigSelection.new(a, b)
s.name =3D "s"


I was wondering if there might be a more elegant way of doing this, without=
 having to explicitly duplicate all of Config's attributes in ConfigSelecti=
on?

Cheers,
James