Move method expansion constants to constant file

This commit is contained in:
Markus Schirp 2013-01-13 22:24:14 +01:00
parent feb12c0cae
commit 034e47e361

View file

@ -10,6 +10,12 @@ module Mutant
undef unless until when while yield
).map(&:to_sym).to_set.freeze
METHOD_NAME_EXPANSIONS = {
/\?\z/ => '_predicate',
/=\z/ => '_writer',
/!\z/ => '_bang'
}.freeze
BINARY_METHOD_OPERATOR_EXPANSIONS = {
:<=> => :spaceship_operator,
:=== => :case_equality_operator,