From: Greg Willits Date: 2010-06-14T16:52:15+09:00 Subject: Re: NoMethodError, most likely foolish... Adam Cohen wrote: > by using the call self.version_info? however I then get this error > instead of the proper output. > > my method looks like this > > def version_info? > puts 'secretproject runtime version ' + version.to_s > puts 'written and maintained: Adam Ross Cohen' > puts 'math genius: Evan Penn' > puts 'thanks for playing.' > end Don't use self.version_info? -- just call version_info? A file with just this in it works fine: #--------- def who_am_i? puts "I Be Ruby" end who_am_i? #--------- -- greg willits -- Posted via http://www.ruby-forum.com/.