зеркало из https://github.com/github/ruby.git
* lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:
raise exception when illegal RC_NAME_GENARATOR defined [Bug #6455]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6dab48b20e
Коммит
0f63b60f23
|
@ -1,3 +1,8 @@
|
|||
Tue Dec 25 21:08:53 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/irb/init.rb, lib/irb/lc/ja/error.rb, lib/irb/lc/error.rb:
|
||||
raise exception when illegal RC_NAME_GENARATOR defined [Bug #6455].
|
||||
|
||||
Tue Dec 25 19:22:17 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||
|
||||
* lib/irb/workspace.rb: define method to private on top-level irb
|
||||
|
|
|
@ -256,7 +256,12 @@ module IRB # :nodoc:
|
|||
end
|
||||
end
|
||||
end
|
||||
@CONF[:RC_NAME_GENERATOR].call ext
|
||||
case rc_file = @CONF[:RC_NAME_GENERATOR].call(ext)
|
||||
when String
|
||||
return rc_file
|
||||
else
|
||||
IRB.fail IllegalRCNameGenerator
|
||||
end
|
||||
end
|
||||
|
||||
# enumerate possible rc-file base name generators
|
||||
|
|
|
@ -25,6 +25,7 @@ module IRB
|
|||
def_exception :CantShiftToMultiIrbMode, "Can't shift to multi irb mode."
|
||||
def_exception :CantChangeBinding, "Can't change binding to (%s)."
|
||||
def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
|
||||
def_exception :IllegalRCGenerator, 'Define illegal RC_NAME_GENERATOR.'
|
||||
|
||||
end
|
||||
# :startdoc:
|
||||
|
|
|
@ -24,6 +24,7 @@ module IRB
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче