class Song def initialize(name, artist, duration) @name = name @artist = artist @duration = duration end end aSong = Song.new(Sea Changes, Beck, 366) aSong.inspect
The error for the code is as follows:
/Users/gregoryheaphyheaphy/Desktop/JUKEBOX.txt:8: uninitialized constant Changes (NameError)
In addition is there a way to call upon methods in terminal? I find that I have to call upon the methods within my script which seems weird to me.
This post has been edited by xclite: 26 September 2013 - 10:48 AM
Reason for edit:: Adding code tags.