Use String#gsub instead of String#sub for rbx

This commit is contained in:
Markus Schirp 2013-04-22 12:17:52 +02:00
parent e699e44aaf
commit 5cc20f9b91

View file

@ -42,7 +42,7 @@ module Mutant
# @api private
#
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
private_class_method :expand