Class: CodeAnalyzer::CheckingVisitor::Plain

Inherits:
Base
  • Object
show all
Defined in:
lib/code_analyzer/checking_visitor/plain.rb

Overview

This is the checking visitor to check ruby plain code.

Instance Method Summary collapse

Methods inherited from Base

#after_check, #initialize, #warnings

Constructor Details

This class inherits a constructor from CodeAnalyzer::CheckingVisitor::Base

Instance Method Details

#check(filename, content) ⇒ Object

check the ruby plain code.

Parameters:

  • filename (String)

    is the filename of ruby code.

  • content (String)

    is the content of ruby file.



10
11
12
# File 'lib/code_analyzer/checking_visitor/plain.rb', line 10

def check(filename, content)
  @checkers.each { |checker| checker.check(filename, content) if checker.parse_file?(filename) }
end