Skip to content

Conversation

brendanthomas1
Copy link

No description provided.

@brendanthomas1
Copy link
Author

For the method on line 22, #num_officers, is there a better way to name that?

Rubocop said that you shouldn't use set_ at the begging of writing methods, but I feel like my num_officers is ambiguous. Is there a Ruby convention for naming methods like these?

attr_reader :population

def initialize
@people = {
Copy link
Member

Choose a reason for hiding this comment

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

Splitting these out to @thieves and @officers will probably simplify things.

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