зеркало из https://github.com/github/ruby.git
Alias regist_scanner to register_scanner
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
11c37ed390
Коммит
051ba7b0b4
|
@ -1,3 +1,7 @@
|
|||
Sun Nov 6 01:52:31 2016 Akira Matsuda <ronnie@dio.jp>
|
||||
|
||||
* lib/erb.rb: Alias regist_scanner to register_scanner
|
||||
|
||||
Sun Nov 6 01:39:36 2016 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* compile.c (tailcallable_p): disable tail call optimization for
|
||||
|
|
|
@ -355,9 +355,12 @@ class ERB
|
|||
|
||||
class Scanner # :nodoc:
|
||||
@scanner_map = {}
|
||||
def self.regist_scanner(klass, trim_mode, percent)
|
||||
class << self
|
||||
def register_scanner(klass, trim_mode, percent)
|
||||
@scanner_map[[trim_mode, percent]] = klass
|
||||
end
|
||||
alias :regist_scanner :register_scanner
|
||||
end
|
||||
|
||||
def self.default_scanner=(klass)
|
||||
@default_scanner = klass
|
||||
|
|
Загрузка…
Ссылка в новой задаче