class AdLint::LineWiseMessageSuppressor
Attributes
key[R]
Public Class Methods
key_of(loc)
click to toggle source
# File lib/adlint/supp.rb, line 111 def self.key_of(loc) [loc.fpath, loc.line_no] end
new(target_msg_ids, annot_loc)
click to toggle source
Calls superclass method
AdLint::MessageSuppressor::new
# File lib/adlint/supp.rb, line 115 def initialize(target_msg_ids, annot_loc) super(target_msg_ids) @key = [annot_loc.fpath, annot_loc.line_no] end
Public Instance Methods
file_wise?()
click to toggle source
# File lib/adlint/supp.rb, line 122 def file_wise? false end
line_wise?()
click to toggle source
# File lib/adlint/supp.rb, line 126 def line_wise? true end