I have two variables, ns
and method
storing the namespace and a method name for working with an api. I have an api library, where once you have an instance, you access the methods as api.namespace.method()
How do I go about checking for the existance of namespace
and method
with the api object from the variables? At the moment I'm switching over the variables but of course, this doesn't scale too well!
Aucun commentaire:
Enregistrer un commentaire