Method: RuboCop::CommentConfig::ConfigDisabledCopDirectiveComment#initialize

Defined in:
lib/rubocop/comment_config.rb

#initialize(cop_name) ⇒ ConfigDisabledCopDirectiveComment

Returns a new instance of ConfigDisabledCopDirectiveComment.



21
22
23
24
25
# File 'lib/rubocop/comment_config.rb', line 21

def initialize(cop_name)
  @text = "# rubocop:disable #{cop_name}"
  @line_number = CONFIG_DISABLED_LINE_RANGE_MIN
  @loc = Loc.new(Expression.new(CONFIG_DISABLED_LINE_RANGE_MIN))
end