diff options
author | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 16:56:52 +0000 |
---|---|---|
committer | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 16:56:52 +0000 |
commit | 25b2f3e94a919801448bfb027c8a2f9406dc0f45 (patch) | |
tree | efa815cddd21faf6d5ad053b1a377ef6ad796bdb /lib/erb.rb | |
parent | 0a407acb5636c3ee0884e9c5da49122496c8b5d7 (diff) | |
download | ruby-25b2f3e94a919801448bfb027c8a2f9406dc0f45.tar.gz |
Alias regist_scanner to register_scanner
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/erb.rb')
-rw-r--r-- | lib/erb.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/erb.rb b/lib/erb.rb index 7f9ec11b85..9483711024 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -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) |