mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00

(https://github.com/ruby/irb/pull/901)
* Always save irb_history in HOME or XDG_CONFIG_HOME
Also split irbrc search logic from irb_history search logic as a refactor
* Remove IRB.conf[:RC_NAME_GENERATOR] because it's not configurable
This conf is used to specify which irbrc to load. Need to configure before irbrc is loaded, so it's actually not configurable.
This conf is also used for history file search, but it is configurable by conf[:HISTORY_FILE].
* remove rc_file_test because it is tested with rc_files, remove useless test setup
* Make internal irbrc searching method private
11d03a6ff7
53 lines
1.3 KiB
Ruby
53 lines
1.3 KiB
Ruby
# frozen_string_literal: true
|
|
#
|
|
# irb/lc/ja/error.rb -
|
|
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
|
|
#
|
|
|
|
module IRB
|
|
# :stopdoc:
|
|
|
|
class UnrecognizedSwitch < StandardError
|
|
def initialize(val)
|
|
super("スイッチ(#{val})が分りません")
|
|
end
|
|
end
|
|
class CantReturnToNormalMode < StandardError
|
|
def initialize
|
|
super("Normalモードに戻れません.")
|
|
end
|
|
end
|
|
class IllegalParameter < StandardError
|
|
def initialize(val)
|
|
super("パラメータ(#{val})が間違っています.")
|
|
end
|
|
end
|
|
class IrbAlreadyDead < StandardError
|
|
def initialize
|
|
super("Irbは既に死んでいます.")
|
|
end
|
|
end
|
|
class IrbSwitchedToCurrentThread < StandardError
|
|
def initialize
|
|
super("カレントスレッドに切り替わりました.")
|
|
end
|
|
end
|
|
class NoSuchJob < StandardError
|
|
def initialize(val)
|
|
super("そのようなジョブ(#{val})はありません.")
|
|
end
|
|
end
|
|
class CantChangeBinding < StandardError
|
|
def initialize(val)
|
|
super("バインディング(#{val})に変更できません.")
|
|
end
|
|
end
|
|
class UndefinedPromptMode < StandardError
|
|
def initialize(val)
|
|
super("プロンプトモード(#{val})は定義されていません.")
|
|
end
|
|
end
|
|
|
|
# :startdoc:
|
|
end
|
|
# vim:fileencoding=utf-8
|