-
-
Notifications
You must be signed in to change notification settings - Fork 531
Fix typo in moviegoer #1781
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
Fix typo in moviegoer #1781
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ The cinema has a simplified age-verification system. | |
| If you are 18 or over you can watch scary movies. | ||
| If you are younger, you cannot. | ||
|
|
||
| Implement the `Moviegoer.watch_scary_movie?` method. | ||
| Implement the `Moviegoer#watch_scary_movie?` method. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not a typographical error, it is as intended. The method called is an instance method, as we can see and verify from the tests: def test_regular_ticket_price
assert_equal 15, Moviegoer.new(59).ticket_price
end
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it was originally documented within exercises/concept/moviegoer/moviegoer.rb, I believe “Moviegoer#watch_scary_movie” is correct. What do you think? def watch_scary_movie?
raise 'Please implement the Moviegoer#watch_scary_movie method'
endAdditionally, instance methods of the same format are also written using “#” in the problem statement.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know for a fact that it is correct. |
||
| It should return whether someone is allowed to watch the movie or not. | ||
|
|
||
| ```ruby | ||
|
|
||
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.
This change is good.