1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/racc] Fix a private method name

https://github.com/ruby/racc/commit/1f52571225
This commit is contained in:
Nobuyoshi Nakada 2021-11-03 19:06:12 +09:00 committed by git
parent acf5ccd185
commit e1ae889c9c

View file

@ -335,14 +335,14 @@ module Racc
if action
idbase = "#{type}@#{id}-#{@seqs[type] += 1}"
target = _wrap(idbase, "#{idbase}-core", action)
_regist("#{idbase}-core", &block)
_register("#{idbase}-core", &block)
else
target = _regist("#{type}@#{id}", &block)
target = _register("#{type}@#{id}", &block)
end
@grammar.intern(target)
end
def _regist(target_name)
def _register(target_name)
target = target_name.intern
unless _added?(@grammar.intern(target))
yield(target).each_rule do |rule|