Module: ClassIndexer

Defined in:
lib/class_indexer.rb,
lib/class_indexer/version.rb

Defined Under Namespace

Classes: Processor

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.process_file(file) ⇒ Object



71
72
73
74
75
76
77
78
# File 'lib/class_indexer.rb', line 71

def self.process_file(file)
  exp = Parser::CurrentRuby.parse(File.read(file))
  ast = Processor.new
  ast.process(exp)
  ast.get_list
rescue Parser::SyntaxError
  warn "Syntax Error found while parsing #{file}"
end