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:
a_matsuda 2016-11-05 16:56:52 +00:00
Родитель 11c37ed390
Коммит 051ba7b0b4
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -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> Sun Nov 6 01:39:36 2016 Shugo Maeda <shugo@ruby-lang.org>
* compile.c (tailcallable_p): disable tail call optimization for * compile.c (tailcallable_p): disable tail call optimization for

Просмотреть файл

@ -355,8 +355,11 @@ class ERB
class Scanner # :nodoc: class Scanner # :nodoc:
@scanner_map = {} @scanner_map = {}
def self.regist_scanner(klass, trim_mode, percent) class << self
@scanner_map[[trim_mode, percent]] = klass def register_scanner(klass, trim_mode, percent)
@scanner_map[[trim_mode, percent]] = klass
end
alias :regist_scanner :register_scanner
end end
def self.default_scanner=(klass) def self.default_scanner=(klass)