Skip to content

Commit

Permalink
Freeze constant AnnotateRoutes::HEADER_ROW (ctran#713)
Browse files Browse the repository at this point in the history
As the change log shows, I froze the constant `HEADER_ROW` in accordance with the normal Ruby style regulation.
  • Loading branch information
nard-tech authored and vfonic committed May 8, 2020
1 parent a9f7a22 commit 7cd339a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/annotate/annotate_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
module AnnotateRoutes
PREFIX = '== 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

Expand Down

0 comments on commit 7cd339a

Please sign in to comment.