3 class CKeywordRule < KeywordRule
5 def initialize(*keywords)
9 def process_source_file(source_file)
10 if source_file.language_breakdown('c')
11 @count += source_file.language_breakdown('c').code.scan(regexp).size
12 elsif source_file.language_breakdown('cpp')
13 @count += source_file.language_breakdown('cpp').code.scan(regexp).size