Skip to content

Sophia's Job Simulation Homework;#9

Open
sophiabaldonado wants to merge 2 commits intoAda-C5:masterfrom
sophiabaldonado:master
Open

Sophia's Job Simulation Homework;#9
sophiabaldonado wants to merge 2 commits intoAda-C5:masterfrom
sophiabaldonado:master

Conversation

@sophiabaldonado
Copy link
Copy Markdown

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.

Comment thread job_simulation.rb
i += 1
end
hire(starting_hire)
end
Copy link
Copy Markdown

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
Copy Markdown

👍

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