Why does running the following code block result in a complaint that
there is no greeting method?

class MyClass
  myVar=greeting()
  def greeting()
    return 'Hello, world!'
  end
end

Thanks so much for any help.

     ... doug

-- 
Posted via http://www.ruby-forum.com/.