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
|
# Explicit method expression
|
||||||
class Method < self
|
class Method < self
|
||||||
|
|
||||||
MATCHERS = {
|
MATCHERS = IceNine.deep_freeze(
|
||||||
'.' => Matcher::Methods::Singleton,
|
'.' => Matcher::Methods::Singleton,
|
||||||
'#' => Matcher::Methods::Instance
|
'#' => Matcher::Methods::Instance
|
||||||
}.freeze
|
)
|
||||||
|
|
||||||
register(
|
register(
|
||||||
/\A(?<scope_name>#{SCOPE_PATTERN})(?<scope_symbol>[.#])(?<method_name>#{METHOD_NAME_PATTERN})\z/
|
/\A(?<scope_name>#{SCOPE_PATTERN})(?<scope_symbol>[.#])(?<method_name>#{METHOD_NAME_PATTERN})\z/
|
||||||
|
|
Loading…
Add table
Reference in a new issue