title: Is it possible to compare private attributes in Ruby?
body: <p>I'm thinking in:</p>
  
  <pre><code>class X
      def new()
          @a = 1
      end
      def m( other ) 
           @a == other.@a
      end
  end
  
  x = X.new()
  y = X.new()
  x.m( y ) 
  </code></pre>
  
  <p>But it doesn't works.</p>
  
  <p>The error message is:</p>
  
  <pre><code>syntax error, unexpected tIVAR
  </code></pre>
  
  <p>How can I compare two private attributes from the same class then?</p>