singleton method IRB::ContextExtender.def_extend_command
def_extend_command(cmd_name, load_file, *aliases) -> object
-
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
- [PARAM] cmd_name:
- メソッド名を Symbol で指定します。 IRB::Context クラスのインスタンスメソッドとして定 義してある必要があります。
- [PARAM] load_file:
- cmd_name で指定したメソッドが定義されたファイル名を指 定します。このファイルは自動的に require されます。
- [PARAM] aliases:
- cmd_name の別名を Symbol で指定します。複数指定する事ができます。
module IRB::ContextExtender