Class: LintFu::Checker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/lint_fu/checker.rb', line 3

def context
  @context
end

#fileObject (readonly)

Returns the value of attribute file.



3
4
5
# File 'lib/lint_fu/checker.rb', line 3

def file
  @file
end

#scanObject (readonly)

Returns the value of attribute scan.



3
4
5
# File 'lib/lint_fu/checker.rb', line 3

def scan
  @scan
end