Calling method within Class
<p>im new in ruby so this code is not working, please provide me the proper way of calling a method within class</p>

<pre><code>Class TestClass

  def testMethod
    puts "hello"
  end

  testMethod
end
</code></pre>

<p><em>UPDATE</em></p>

<p>hi everyone thanks for all the help and comments just like @Stefan and @Matt said, my example is very uncommon to use this way and thanks for giving the right path anyway i just want to add this from my question and i found a way to work</p>

<pre><code>class TestClass
    def self.testMethod
       puts "hello"
    end

    TestClass.testMethod
end
</code></pre>