-
-
Notifications
You must be signed in to change notification settings - Fork 71
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 Environment.namespaceToName()
method
#34
Conversation
1 similar comment
Should this be a static method or an instance method? |
Sorry for the troll... Anyway, we should double check where the call site for a similar function would be and see if it's more convenient to have it as an instance method rather than a static one. |
I guess it makes more sense as an instance method. I added a static one for now as that seemed what the original issue's title suggests, but am fine with it being an instance method. What would be the most handy in |
Looks okay to keep this as a static method. |
@@ -452,6 +452,17 @@ Environment.createEnv = function (args, opts, adapter) { | |||
}; | |||
|
|||
/** | |||
* Convert a generators namespace to its name | |||
* | |||
* @param {Namespace} namespace |
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.
Namespace is not a valid type, we want a string here.
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.
Haha whoops! Updated.
a9b0786
to
db159ff
Compare
1 similar comment
Awesome, thanks! |
Add `Environment.namespaceToName()` method
Fix #20