Commit 3e3d6056 by Shu Fujita Committed by Andrew W. Lee

Freeze constant AnnotateRoutes::HEADER_ROW (#713)

As the change log shows, I froze the constant `HEADER_ROW` in accordance with the normal Ruby style regulation.
parent 2213ece2
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
module AnnotateRoutes module AnnotateRoutes
PREFIX = '== Route Map'.freeze PREFIX = '== Route Map'.freeze
PREFIX_MD = '## Route Map'.freeze PREFIX_MD = '## Route Map'.freeze
HEADER_ROW = ['Prefix', 'Verb', 'URI Pattern', 'Controller#Action'] HEADER_ROW = ['Prefix', 'Verb', 'URI Pattern', 'Controller#Action'].freeze
MAGIC_COMMENT_MATCHER = Regexp.new(/(^#\s*encoding:.*)|(^# coding:.*)|(^# -\*- coding:.*)|(^# -\*- encoding\s?:.*)|(^#\s*frozen_string_literal:.+)|(^# -\*- frozen_string_literal\s*:.+-\*-)/).freeze MAGIC_COMMENT_MATCHER = Regexp.new(/(^#\s*encoding:.*)|(^# coding:.*)|(^# -\*- coding:.*)|(^# -\*- encoding\s?:.*)|(^#\s*frozen_string_literal:.+)|(^# -\*- frozen_string_literal\s*:.+-\*-)/).freeze
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment