-
Notifications
You must be signed in to change notification settings - Fork 20
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
damian-moreno--practice-day5 #31
base: practice-day5
Are you sure you want to change the base?
damian-moreno--practice-day5 #31
Conversation
attr_accessor :missions | ||
|
||
@@mission_status = %w(active paused aborted accomplished failed) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid this extra empty line here as @@mission_status
is set and used right after.
} | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An extra empty line at the end of the file is needed and taken as a good practice.
players: {}, | ||
control: {}, | ||
status: nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would define this kind of hashes using one line @board = { players: {}, control: {}, status: nil }
|
||
x = ErrorTest.new | ||
x.new_worker name: 'damian' | ||
x.new_mission(pack: {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing, please add an extra empty line at the end of the files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should set a sync to talk about the Rubocop issue you report, lets see what is tat about.
Hello! just a quick note: rubocop keep telling me that the error handling-blocks where 'redundant' i think for the sake of this exercise was necessary since I needed to raise the errors and catch them on the same block, wich i agree is redundant.
I personally always have issues locating where to raise/catch errors and this practice just confused me more. @jakobhans @hivanreyes @Apostat23