title: Ruby How to get the value of a variable outside of the initialize method but inside the class?
body: <p>How can I get the value of @person outside of the initialize method but inside the class?</p>
  
  <pre><code>class MainClass
    def initialize(person)
      @person = person
      puts @person # prints David
    end
  
    puts @person # prints blank line
  end
  
  mc = MainClass.new("David")
  </code></pre>