From 29023ab421e997b4a7f1a4044785aaea6af73ef2 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sun, 6 Jul 2014 03:41:04 +0000 Subject: [PATCH] Deep freeze composed constant --- lib/mutant/expression/method.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mutant/expression/method.rb b/lib/mutant/expression/method.rb index 900c0d7a..90fb92ee 100644 --- a/lib/mutant/expression/method.rb +++ b/lib/mutant/expression/method.rb @@ -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_PATTERN})(?[.#])(?#{METHOD_NAME_PATTERN})\z/