Use String#sub instead of overpowered String#gsub

This commit is contained in:
Markus Schirp 2013-02-22 23:33:54 +01:00
parent a5ae73f247
commit 4ac0153125

View file

@ -42,7 +42,7 @@ module Mutant
# @api private # @api private
# #
def self.expand(name) def self.expand(name)
name.to_s.gsub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym name.to_s.sub(REGEXP, METHOD_POSTFIX_EXPANSIONS).to_sym
end end
private_class_method :expand private_class_method :expand