16/18 Review: Private Affairs


#1

Um, help. I've typed it several different ways (including some other strange ones), and am still stuck. I keep resetting and coming back... let's start with this please.

class Application
attr_accessor :status
def initialize; end

public
def print_status; end
puts "All systems go!"

private
def password; end
return 12345
end

I've tried puts and prints instead of return. I've tried defining password as an empty set. I've tried defining it as the password 12345. I've tried quite a lot of things and am still stuck. Help!


#2

Well... I finally changed enough things that it let me pass ("You shall not pass!") but it didn't return the password, or at least it didn't seem to. I'll put my results for the private method below. Please let me know how I can improve upon them.

private
def password
@password = 12345
return password
end


#3

you should try emulating what was done on lesson 4. That worked for me

private
def id
@id_number=12345
end