title: Initialize class object variable in Ruby
body: <p>I have created a class for example</p>
  
  <pre><code>class Result
      @@min = 0
      @@max = 0
      def initialize(min, max)
          @@max.min = min
          @@max.max = max
      end
  end
  
  result = Result.new(1, 10)
  result.max
  </code></pre>
  
  <p>Same as other lang. like php, C# etc I have created a class and pass a value and since it has initialize method it will should now contains the object values but when I try to print out </p>
  
  <pre><code>puts result.min
  puts result.max
  </code></pre>
  
  <p>it says undefined method <code>min</code></p>