rubyhacker / gmail.com wrote:

> As I said, I'd want this mapping info stored *in* my code, but not
> scattered through it, and not in my stored classes. Hopefully that is
> a viable world view.

What would be wrong with using re-opening classes for the mapping e.g.

#file A.rb
class A
  def foo ...
  def bar ...
end

#file A_store.rb
class A
  prop :foo, String
  has_many :bars, B
end

Is it the number of additional instance methods added to A?