-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add yacht exercise #691
Add yacht exercise #691
Conversation
Perhaps something like package Yacht::Categories;
# exports ...
use constant {
ONES => 1,
TWOS => 2,
# ...
CHOICE => 12,
}; Or, do away with the category argument, and the generator calls a subroutine named after the category:
|
@m-dango I added a Category submodule with Readonly values for the categories. This is a bit awkward, as there's no way to stash it in the template-data.yaml file. |
"editor": [ | ||
"lib/Yacht/Category.pm" | ||
] |
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.
Note this. This makes the Category module visible in the web editor, but readonly.
No description provided.