class AdLint::FileWiseMessageSuppressor

Attributes

key[R]

Public Class Methods

key_of(loc) click to toggle source
# File lib/adlint/supp.rb, line 90
def self.key_of(loc)
  [loc.fpath]
end
new(target_msg_ids, annot_loc) click to toggle source
Calls superclass method AdLint::MessageSuppressor::new
# File lib/adlint/supp.rb, line 94
def initialize(target_msg_ids, annot_loc)
  super(target_msg_ids)
  @key = [annot_loc.fpath]
end

Public Instance Methods

file_wise?() click to toggle source
# File lib/adlint/supp.rb, line 101
def file_wise?
  true
end
line_wise?() click to toggle source
# File lib/adlint/supp.rb, line 105
def line_wise?
  false
end