Getting More Creative 5/8


#1

Hi I am having trouble with my code can anyone help me?

My code:
class Computer
@@users = {}
@@files = {}

def initialize(username, password)
    @username = username
    @password = password

    @@users[username] = password

end

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

Error message:
Oops, try again. Did you add a create method to your Computer class?

output:nil


#2

Test your method, does it do what it's supposed to?

Computer.new('bob', 'mcbob').create('bobsfile')