Class: LintFu::Scan
- Inherits:
-
Object
- Object
- LintFu::Scan
- Defined in:
- lib/lint_fu/scan.rb
Instance Attribute Summary collapse
-
#fs_root ⇒ Object
readonly
Returns the value of attribute fs_root.
-
#issues ⇒ Object
readonly
Returns the value of attribute issues.
Instance Method Summary collapse
- #blessed?(issue) ⇒ Boolean
-
#initialize(fs_root) ⇒ Scan
constructor
A new instance of Scan.
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_root ⇒ Object (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 |
#issues ⇒ Object (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
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 |