title: ruby class problem
body: <p>I have the following ruby code:</p>
  
  <pre><code>class Mp
    def initialize
  
      Test.new.mytest
      Work.new.mywork
      ha
      address
  
    end
  
    def ha
      puts "message from ha"
    end
  
    def address
  
     a='see'
  
    end
  
  end
  
  
  class Test
  
    def mytest
      m=Mp.new
      puts "Message from test do you #{m.address}"
    end
  end
  
  class Work
  
    def mywork
      puts "message from work"
    end
  
  end
  
  Mp.new
  </code></pre>
  
  <p>This works fine except the part in def mytest where I'm trying to put out the m.address. Thanks for your help in advance.</p>