diff options
| author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 | 
|---|---|---|
| committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 | 
| commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
| tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/lib/irb/lc/ja | |
Fresh start
Diffstat (limited to 'jni/ruby/lib/irb/lc/ja')
| -rw-r--r-- | jni/ruby/lib/irb/lc/ja/encoding_aliases.rb | 10 | ||||
| -rw-r--r-- | jni/ruby/lib/irb/lc/ja/error.rb | 30 | ||||
| -rw-r--r-- | jni/ruby/lib/irb/lc/ja/help-message | 53 | 
3 files changed, 93 insertions, 0 deletions
| diff --git a/jni/ruby/lib/irb/lc/ja/encoding_aliases.rb b/jni/ruby/lib/irb/lc/ja/encoding_aliases.rb new file mode 100644 index 0000000..5bef32e --- /dev/null +++ b/jni/ruby/lib/irb/lc/ja/encoding_aliases.rb @@ -0,0 +1,10 @@ +# :stopdoc: +module IRB +  class Locale +    @@legacy_encoding_alias_map = { +      'ujis' => Encoding::EUC_JP, +      'euc' => Encoding::EUC_JP +    }.freeze +  end +end +# :startdoc: diff --git a/jni/ruby/lib/irb/lc/ja/error.rb b/jni/ruby/lib/irb/lc/ja/error.rb new file mode 100644 index 0000000..6532777 --- /dev/null +++ b/jni/ruby/lib/irb/lc/ja/error.rb @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +#   irb/lc/ja/error.rb - +#   	$Release Version: 0.9.6$ +#   	$Revision: 38600 $ +#   	by Keiju ISHITSUKA(keiju@ruby-lang.org) +# +# -- +# +# +# +require "e2mmap" + +# :stopdoc: +module IRB +  # exceptions +  extend Exception2MessageMapper +  def_exception :UnrecognizedSwitch, 'スイッチ(%s)が分りません' +  def_exception :NotImplementedError, '`%s\'の定義が必要です' +  def_exception :CantReturnToNormalMode, 'Normalモードに戻れません.' +  def_exception :IllegalParameter, 'パラメータ(%s)が間違っています.' +  def_exception :IrbAlreadyDead, 'Irbは既に死んでいます.' +  def_exception :IrbSwitchedToCurrentThread, 'カレントスレッドに切り替わりました.' +  def_exception :NoSuchJob, 'そのようなジョブ(%s)はありません.' +  def_exception :CantShiftToMultiIrbMode, 'multi-irb modeに移れません.' +  def_exception :CantChangeBinding, 'バインディング(%s)に変更できません.' +  def_exception :UndefinedPromptMode, 'プロンプトモード(%s)は定義されていません.' +  def_exception :IllegalRCNameGenerator, 'RC_NAME_GENERATORが正しく定義されていません.' +end +# :startdoc: +# vim:fileencoding=utf-8 diff --git a/jni/ruby/lib/irb/lc/ja/help-message b/jni/ruby/lib/irb/lc/ja/help-message new file mode 100644 index 0000000..1483892 --- /dev/null +++ b/jni/ruby/lib/irb/lc/ja/help-message @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +#   irb/lc/ja/help-message.rb - +#   	$Release Version: 0.9.6$ +#   	$Revision: 41071 $ +#   	by Keiju ISHITSUKA(keiju@ruby-lang.org) +# +# -- +# +# +# +Usage:  irb.rb [options] [programfile] [arguments] +  -f		    ~/.irbrc を読み込まない. +  -m		    bcモード(分数, 行列の計算ができる) +  -d                $DEBUG をtrueにする(ruby -d と同じ) +  -r load-module    ruby -r と同じ. +  -I path           $LOAD_PATH に path を追加する. +  -U                ruby -U と同じ. +  -E enc            ruby -E と同じ. +  -w                ruby -w と同じ. +  -W[level=2]       ruby -W と同じ. +  --context-mode n  新しいワークスペースを作成した時に関連する Binding +		    オブジェクトの作成方法を 0 から 3 のいずれかに設定する. +  --echo	    実行結果を表示する(デフォルト). +  --noecho	    実行結果を表示しない. +  --inspect	    結果出力にinspectを用いる(bcモード以外はデフォルト). +  --noinspect	    結果出力にinspectを用いない. +  --readline	    readlineライブラリを利用する. +  --noreadline	    readlineライブラリを利用しない. +  --prompt prompt-mode/--prompt-mode prompt-mode +		    プロンプトモードを切替えます. 現在定義されているプ +		    ロンプトモードは, default, simple, xmp, inf-rubyが +		    用意されています. +  --inf-ruby-mode   emacsのinf-ruby-mode用のプロンプト表示を行なう. 特 +		    に指定がない限り, readlineライブラリは使わなくなる. +  --sample-book-mode/--simple-prompt +		    非常にシンプルなプロンプトを用いるモードです. +  --noprompt	    プロンプト表示を行なわない. +  --single-irb	    irb 中で self を実行して得られるオブジェクトをサ +		    ブ irb と共有する. +  --tracer	    コマンド実行時にトレースを行なう. +  --back-trace-limit n +		    バックトレース表示をバックトレースの頭から n, 後ろ +		    からnだけ行なう. デフォルトは16 + +  --irb_debug n	    irbのデバッグレベルをnに設定する(非推奨). + +  --verbose	    詳細なメッセージを出力する. +  --noverbose	    詳細なメッセージを出力しない(デフォルト). +  -v, --version	    irbのバージョンを表示する. +  -h, --help	    irb のヘルプを表示する. +  --		    以降のコマンドライン引数をオプションとして扱わない. + +# vim:fileencoding=utf-8 | 
