Deep freeze composed constant
This commit is contained in:
parent
fe37aa72c9
commit
29023ab421
1 changed files with 2 additions and 2 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue