title: Object assignment in Ruby
body: <p>Coming from a c++ background I'm curious about object assignment in Ruby. What considerations (if any) should be made for the following object assignments:</p>
  
  <pre><code>class MyClass
  
    attr_accessor :a, :b
  
    def initialize(a, b)
      @a = a
      @b = b
    end
  
    def some_method
      puts "#{self.a} #{self.b}"
    end
  end
  
  m = MyClass.new("first", "last")
  n = MyClass.new("pizza", "hello")
  
  q = n
  q.some_method
  </code></pre>