mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
11c37ed390
commit
051ba7b0b4
2 changed files with 9 additions and 2 deletions
|
@ -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,8 +355,11 @@ class ERB
|
|||
|
||||
class Scanner # :nodoc:
|
||||
@scanner_map = {}
|
||||
def self.regist_scanner(klass, trim_mode, percent)
|
||||
@scanner_map[[trim_mode, percent]] = klass
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue