Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sophia's Job Simulation Homework; #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sophiabaldonado
Copy link

Sophia Baldonado

To use, create a new instance of Job class then call .reorg on it. You can see the current queue and employee objects by calling .status on the job instance. Since we didn't have attr_readers on the @store arrays in Queue and Stack I couldn't show the arrays inside without inspecting them in the .status method. With attr_readers in the two classes I would have used @stack.store instead of @Stack.inspect.

i += 1
end
hire(starting_hire)
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like your use of this helper method!

@sudocrystal
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants