mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
7dd59346a0
commit
e55a57af1e
1 changed files with 11 additions and 0 deletions
|
@ -1129,6 +1129,10 @@ XXX
|
|||
default.to_i + 1
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
# See self.inc
|
||||
#
|
||||
def inc(*args)
|
||||
self.class.inc(*args)
|
||||
end
|
||||
|
@ -1167,6 +1171,9 @@ XXX
|
|||
def terminate(arg = nil)
|
||||
self.class.terminate(arg)
|
||||
end
|
||||
#
|
||||
# See #terminate.
|
||||
#
|
||||
def self.terminate(arg = nil)
|
||||
throw :terminate, arg
|
||||
end
|
||||
|
@ -1881,6 +1888,9 @@ XXX
|
|||
DidYouMean.formatter.message_for(all_candidates & checker.correct(opt))
|
||||
end
|
||||
|
||||
#
|
||||
# Return candidates for +word+.
|
||||
#
|
||||
def candidate(word)
|
||||
list = []
|
||||
case word
|
||||
|
@ -2123,6 +2133,7 @@ XXX
|
|||
# Reason which caused the error.
|
||||
Reason = 'parse error'
|
||||
|
||||
# :nodoc:
|
||||
def initialize(*args, additional: nil)
|
||||
@additional = additional
|
||||
@arg0, = args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue