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:
parent
acf5ccd185
commit
e1ae889c9c
1 changed files with 3 additions and 3 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue