5. Getting More Creative - Need help!


Code doesn't seem to be working. I've tried fiddling around with it but I get the same error message:
Oops, try again. Did you add a create method to your Computer class?

Can anyone help??

class Computer
    @@users = {}
    def initialize(username, password)
        @username = username 
        @password = password
        @files = {}
        @@users[username] = password

def create(filename)
    time = Time.now
   @files[filename] = time 
    puts "Your file has been created!"


Add an end statement after your final one


I already tried that and it didn't work


You are only supposed to have one end statement here but two at the end of your code,


Ohhh - sorry! I've corrected it now and it works!

Thank you! :slight_smile:


You're welcome :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.