зеркало из https://github.com/github/ruby.git
[ruby/irb] Delete IRB::NotImplementedError
(https://github.com/ruby/irb/pull/878) https://github.com/ruby/irb/commit/6751778948
This commit is contained in:
Родитель
183c574d54
Коммит
88431c47ba
|
@ -20,7 +20,7 @@ module IRB
|
|||
#
|
||||
# See IO#gets for more information.
|
||||
def gets
|
||||
fail NotImplementedError, "gets"
|
||||
fail NotImplementedError
|
||||
end
|
||||
public :gets
|
||||
|
||||
|
|
|
@ -12,11 +12,6 @@ module IRB
|
|||
super("Unrecognized switch: #{val}")
|
||||
end
|
||||
end
|
||||
class NotImplementedError < StandardError
|
||||
def initialize(val)
|
||||
super("Need to define `#{val}'")
|
||||
end
|
||||
end
|
||||
class CantReturnToNormalMode < StandardError
|
||||
def initialize
|
||||
super("Can't return to normal mode.")
|
||||
|
|
|
@ -12,11 +12,6 @@ module IRB
|
|||
super("スイッチ(#{val})が分りません")
|
||||
end
|
||||
end
|
||||
class NotImplementedError < StandardError
|
||||
def initialize(val)
|
||||
super("`#{val}'の定義が必要です")
|
||||
end
|
||||
end
|
||||
class CantReturnToNormalMode < StandardError
|
||||
def initialize
|
||||
super("Normalモードに戻れません.")
|
||||
|
|
|
@ -9,16 +9,10 @@ module IRB
|
|||
# IRB::Notifier. You can define your own output method to use with Irb.new,
|
||||
# or Context.new
|
||||
class OutputMethod
|
||||
class NotImplementedError < StandardError
|
||||
def initialize(val)
|
||||
super("Need to define `#{val}'")
|
||||
end
|
||||
end
|
||||
|
||||
# Open this method to implement your own output method, raises a
|
||||
# NotImplementedError if you don't define #print in your own class.
|
||||
def print(*opts)
|
||||
raise NotImplementedError, "print"
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
# Prints the given +opts+, with a newline delimiter.
|
||||
|
|
Загрузка…
Ссылка в новой задаче