I have DRb server that manages marshalized objects in DB. I've
  stored objects of the class below:

  class MyObject
    def initialize( name )
      @name = name
    end
  end

  Then I've fetched them back and all worked fine.

  Next I've decided to supply attr_reader to access @name and class
  became:
  class MyObject
    attr_reader :name
    def initialize( name )
      @name = name
    end
  end

  When I've fetched my object from DRb server and called obj.name I
  saw error message:
  undefined method `name' for #<MyClass:0x80e5864>

  p obj
  produced:
  #<MyClass:0x80e5864 @name='test'>

  Then I've decided to modify MyClass in such way:
  class MyObject
    def initialize( name )
      @name = name
    end

    def name
      @name
    end
  end

  and in this case all works fine. obj.name returns 'test'
  I don't understand why attr_reader doesn't work in my example?

-- 
Best regards,
 Eugene [team Enticla]             mailto:Eugene.Scripnik / itgrp.net