title: Rubocop error: "Use attr_reader to define trivial reader methods."
body: <p>I am having some struggle using rubocop and don't know how I could solve this problem.</p>
  
  <p>The code I have:</p>
  
  <pre><code>class Test
    @hello = 'stackoverflow'
  
    def self.hello
      @hello
    end
  end
  
  p Test.hello
  </code></pre>
  
  <p>It runs the way i want, but when I run rubocop it says to use attr_reader. If I try to use attr_reader it gives me NoMethodError.</p>
  
  <p>I already tried to solve this like this, but rubocop is still not happy.</p>
  
  <pre><code>class Test2
    @hello = 'stackoverflow'
  
    class &lt;&lt; self
      def hello
        @hello
      end
    end
  end
  </code></pre>
  
  <p>How could I solve this?</p>