mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/ripper/tools/dsl.rb: Use String#sub instead of delete_suffix
It fails when baseruby is old. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f69bf70881
commit
8a489a7d6f
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class DSL
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_event(event, args, qundef_check = false)
|
def add_event(event, args, qundef_check = false)
|
||||||
event = event.to_s.delete_suffix("!")
|
event = event.to_s.sub(/!\z/, "")
|
||||||
@events[event] = args.size
|
@events[event] = args.size
|
||||||
vars = []
|
vars = []
|
||||||
args.each do |arg|
|
args.each do |arg|
|
||||||
|
|
Loading…
Reference in a new issue