From: Parv G Date: 2006-06-17T04:37:20+09:00 Subject: undefined method (noMethodError) I'm new to ruby coming from Java/C#. I keep on getting an error "undefined method `nextcell' for TestClass:Class (NoMethodError)" , when i try to run the code below. if somebody can provide some insight, that would be appreciated. class TestClass def nextcell col = 'A' row = 1 maxCol = 'H' maxRow = 5 if (col < maxCol) myNextCell = col + row.to_s col = col.next puts("Next Cell is #{myNextCell}") return myNextCell else row.next myNextCell = col + row.to_s col.next return myNextCell end end nextcell() nextcell() end The reason why i'm calling method nextcell() twice is to see if the state of the variable has changed. is this the right approach or are my variable declartions incorrect? Thanks -- Posted via http://www.ruby-forum.com/.