Method: CommentExtractor::Parser.for

Defined in:
lib/comment_extractor/parser.rb

.for(file_path) ⇒ Object



18
19
20
21
22
# File 'lib/comment_extractor/parser.rb', line 18

def self.for(file_path)
  if extractor = Extractors.can_extract(file_path)
    self.initialize_with_extractor(file_path, extractor)
  end
end