I have downloaded and installed rubyzip successfully. However, Ruby
does not recognize any of its classes.
The following is the code that I used (for practice):
def getfiles (zipFileName)
Zip::ZipFile.foreach(zipFileName) do |file|
…and this is the error that I received:
test.rb:27:in `getfiles’: uninitialized constant Song::Zip (NameError)
Not sure if I used the classes and/or methods correctly, but it does not
seem to recognize Zip or ZipFile.
Can someone please tell me what I can do to fix this problem?