Class: LintFu::Scan

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_fu/scan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fs_root) ⇒ Scan

Returns a new instance of Scan.



7
8
9
10
# File 'lib/lint_fu/scan.rb', line 7

def initialize(fs_root)
  @fs_root = fs_root
  @issues = Set.new
end

Instance Attribute Details

#fs_rootObject (readonly)

Returns the value of attribute fs_root.



5
6
7
# File 'lib/lint_fu/scan.rb', line 5

def fs_root
  @fs_root
end

#issuesObject (readonly)

Returns the value of attribute issues.



5
6
7
# File 'lib/lint_fu/scan.rb', line 5

def issues
  @issues
end

Instance Method Details

#blessed?(issue) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/lint_fu/scan.rb', line 12

def blessed?(issue)
  issue.sexp.blessings.any? { |b| b.issue_class = issue.class }
end