class AdLint::Postfilter::MessageLine

Attributes

fpath[R]
line_no[R]
message_id[R]

Public Class Methods

new(str, fpath_str, line_no_str, message_id_str) click to toggle source
Calls superclass method
# File lib/adlint/postfilter/content.rb, line 93
def initialize(str, fpath_str, line_no_str, message_id_str)
  super(str)

  @fpath = Pathname.new(fpath_str).realpath
  @line_no = line_no_str ? line_no_str.to_i : nil
  @message_id = message_id_str.to_sym
end

Public Instance Methods

filterable?() click to toggle source
# File lib/adlint/postfilter/content.rb, line 105
def filterable?
  true
end
match_with?(suppression) click to toggle source
# File lib/adlint/postfilter/content.rb, line 109
def match_with?(suppression)
  suppression._match_with?(self)
end