Deep freeze composed constant

This commit is contained in:
Markus Schirp 2014-07-06 03:41:04 +00:00
parent fe37aa72c9
commit 29023ab421

View file

@ -4,10 +4,10 @@ module Mutant
# Explicit method expression
class Method < self
MATCHERS = {
MATCHERS = IceNine.deep_freeze(
'.' => Matcher::Methods::Singleton,
'#' => Matcher::Methods::Instance
}.freeze
)
register(
/\A(?<scope_name>#{SCOPE_PATTERN})(?<scope_symbol>[.#])(?<method_name>#{METHOD_NAME_PATTERN})\z/