ruby-changes:44538
From: a_matsuda <ko1@a...>
Date: Sun, 6 Nov 2016 01:56:57 +0900 (JST)
Subject: [ruby-changes:44538] a_matsuda:r56611 (trunk): Alias regist_scanner to register_scanner
a_matsuda 2016-11-06 01:56:52 +0900 (Sun, 06 Nov 2016) New Revision: 56611 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56611 Log: Alias regist_scanner to register_scanner Modified files: trunk/ChangeLog trunk/lib/erb.rb Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 56610) +++ lib/erb.rb (revision 56611) @@ -355,8 +355,11 @@ class ERB https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L355 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) Index: ChangeLog =================================================================== --- ChangeLog (revision 56610) +++ ChangeLog (revision 56611) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 6 01:52:31 2016 Akira Matsuda <ronnie@d...> + + * lib/erb.rb: Alias regist_scanner to register_scanner + Sun Nov 6 01:39:36 2016 Shugo Maeda <shugo@r...> * compile.c (tailcallable_p): disable tail call optimization for -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/