Use String#gsub instead of String#sub for rbx
This commit is contained in:
parent
e699e44aaf
commit
5cc20f9b91
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def self.expand(name)
|
def self.expand(name)
|
||||||
name.to_s.sub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym
|
name.to_s.gsub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym
|
||||||
end
|
end
|
||||||
private_class_method :expand
|
private_class_method :expand
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue