Skip to content

Commit 3e3d605

Browse files
nard-techdrwl
authored andcommitted
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.
1 parent 2213ece commit 3e3d605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/annotate/annotate_routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
module AnnotateRoutes
2323
PREFIX = '== Route Map'.freeze
2424
PREFIX_MD = '## Route Map'.freeze
25-
HEADER_ROW = ['Prefix', 'Verb', 'URI Pattern', 'Controller#Action']
25+
HEADER_ROW = ['Prefix', 'Verb', 'URI Pattern', 'Controller#Action'].freeze
2626

2727
MAGIC_COMMENT_MATCHER = Regexp.new(/(^#\s*encoding:.*)|(^# coding:.*)|(^# -\*- coding:.*)|(^# -\*- encoding\s?:.*)|(^#\s*frozen_string_literal:.+)|(^# -\*- frozen_string_literal\s*:.+-\*-)/).freeze
2828

0 commit comments

Comments
 (0)