mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
6dab48b20e
commit
0f63b60f23
4 changed files with 13 additions and 1 deletions
|
@ -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>
|
Tue Dec 25 19:22:17 2012 Keiju Ishitsuka <keiju@ishitsuka.com>
|
||||||
|
|
||||||
* lib/irb/workspace.rb: define method to private on top-level irb
|
* lib/irb/workspace.rb: define method to private on top-level irb
|
||||||
|
|
|
@ -256,7 +256,12 @@ module IRB # :nodoc:
|
||||||
end
|
end
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
# enumerate possible rc-file base name generators
|
# 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 :CantShiftToMultiIrbMode, "Can't shift to multi irb mode."
|
||||||
def_exception :CantChangeBinding, "Can't change binding to (%s)."
|
def_exception :CantChangeBinding, "Can't change binding to (%s)."
|
||||||
def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
|
def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
|
||||||
|
def_exception :IllegalRCGenerator, 'Define illegal RC_NAME_GENERATOR.'
|
||||||
|
|
||||||
end
|
end
|
||||||
# :startdoc:
|
# :startdoc:
|
||||||
|
|
|
@ -24,6 +24,7 @@ module IRB
|
||||||
def_exception :CantShiftToMultiIrbMode, 'multi-irb modeに移れません.'
|
def_exception :CantShiftToMultiIrbMode, 'multi-irb modeに移れません.'
|
||||||
def_exception :CantChangeBinding, 'バインディング(%s)に変更できません.'
|
def_exception :CantChangeBinding, 'バインディング(%s)に変更できません.'
|
||||||
def_exception :UndefinedPromptMode, 'プロンプトモード(%s)は定義されていません.'
|
def_exception :UndefinedPromptMode, 'プロンプトモード(%s)は定義されていません.'
|
||||||
|
def_exception :IllegalRCNameGenerator, 'RC_NAME_GENERATORが正しく定義されていません.'
|
||||||
end
|
end
|
||||||
# :startdoc:
|
# :startdoc:
|
||||||
# vim:fileencoding=utf-8
|
# vim:fileencoding=utf-8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue