title: Why can't I call a method?
body: <p>So I thought I'd learn some Ruby. I was playing with the interpreter but I wanted to make bigger programs so I downloaded Aptana, an IDE. When I try to run this code:</p>
  
  <pre><code>class HelloWorld
      def h
          puts "hello World!"
      end
      h
  end
  </code></pre>
  
  <p>It gives me an error that says h is an undefined local variable. When I type the commands into the interpreter (without the class start and end) it calls h the way I want it to.</p>
  
  <p>I'm at a loss here. what's going on?</p>