2010/5/16 Une B=E9vue <unbewusst.sein / google.com.invalid>:

> self =3D OpenStruct.new(@attr)
no, but you could forward to the OpenStruct.new( @attr )

require 'forwardable'

class ...
   extend Forwardable

attr =3D @attr =3D OpenStruct.new(@attr)
extend( Module::new{
  extend Forwardable
  def_delegators( ;@attr, *attr.keys )
})