Class: LintFu::Checker
- Inherits:
-
Object
- Object
- LintFu::Checker
- Defined in:
- lib/lint_fu/checker.rb
Direct Known Subclasses
Rails::BuggyEagerLoadChecker, Rails::SqlInjectionChecker, Rails::UnsafeFindChecker
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#scan ⇒ Object
readonly
Returns the value of attribute scan.
Instance Method Summary collapse
-
#initialize(scan, context, file = nil) ⇒ Checker
constructor
A new instance of Checker.
Constructor Details
#initialize(scan, context, file = nil) ⇒ Checker
Returns a new instance of Checker.
5 6 7 8 9 |
# File 'lib/lint_fu/checker.rb', line 5 def initialize(scan, context, file=nil) @scan = scan @context = context @file = file end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/lint_fu/checker.rb', line 3 def context @context end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
3 4 5 |
# File 'lib/lint_fu/checker.rb', line 3 def file @file end |
#scan ⇒ Object (readonly)
Returns the value of attribute scan.
3 4 5 |
# File 'lib/lint_fu/checker.rb', line 3 def scan @scan end |