Created
October 21, 2020 09:56
-
-
Save shikumiya-hata/5e8f3313d7d49128d44fa8adb4f2a840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Fooインスタンスを生成して取得する | |
* @return {Lib} - Fooインスタンス | |
*/ | |
function create() { | |
return new Foo() // Fooクラスのインスタンスを生成して返却 | |
} | |
/** | |
* hogeメソッド | |
* @return {bool} - true固定 | |
*/ | |
function hoge() { | |
throw Exception() // Lib.hoge()と呼ばれてしまうのでExceptionをthrowする | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment